Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-471

Allow DomainValidator overrides at run-time

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7
    • Component/s: None
    • Labels:
      None

      Description

      It would be useful to allow DomainValidator instances to be created with different overrides.
      Currently this is not possible because there are only two cached instances.
      As such, it's not possible to make changes after initialisation.

      The class could be extended allow further instances to be created, whilst still keeping the existing behaviour for the cached instances.

      This would allow users to create further instances with local changes to the Generic and CountryCode lists.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: