Class ConfigurationImpl

    • Constructor Detail

      • ConfigurationImpl

        public ConfigurationImpl​(jakarta.validation.spi.BootstrapState aState,
                                 jakarta.validation.spi.ValidationProvider<ApacheValidatorConfiguration> aProvider)
        Create a new ConfigurationImpl instance.
        Parameters:
        aState - bootstrap state
        aProvider - provider
    • Method Detail

      • ignoreXmlConfiguration

        public ApacheValidatorConfiguration ignoreXmlConfiguration()
        Ignore data from the META-INF/validation.xml file if this method is called.
        Specified by:
        ignoreXmlConfiguration in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
        Returns:
        this
      • messageInterpolator

        public ConfigurationImpl messageInterpolator​(jakarta.validation.MessageInterpolator resolver)
        Specified by:
        messageInterpolator in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
      • constraintValidatorFactory

        public ConfigurationImpl constraintValidatorFactory​(jakarta.validation.ConstraintValidatorFactory constraintValidatorFactory)
        Specified by:
        constraintValidatorFactory in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
      • addProperty

        public ApacheValidatorConfiguration addProperty​(String name,
                                                        String value)
        Add a provider specific property. This property is equivalent to XML configuration properties. If we do not know how to handle the property, we silently ignore it.
        Specified by:
        addProperty in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
        Returns:
        this
      • getDefaultMessageInterpolator

        public jakarta.validation.MessageInterpolator getDefaultMessageInterpolator()
        Specified by:
        getDefaultMessageInterpolator in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
      • getDefaultTraversableResolver

        public jakarta.validation.TraversableResolver getDefaultTraversableResolver()
        Specified by:
        getDefaultTraversableResolver in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
      • getDefaultConstraintValidatorFactory

        public jakarta.validation.ConstraintValidatorFactory getDefaultConstraintValidatorFactory()
        Specified by:
        getDefaultConstraintValidatorFactory in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
      • getDefaultParameterNameProvider

        public jakarta.validation.ParameterNameProvider getDefaultParameterNameProvider()
        Specified by:
        getDefaultParameterNameProvider in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
      • getDefaultClockProvider

        public jakarta.validation.ClockProvider getDefaultClockProvider()
        Specified by:
        getDefaultClockProvider in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
      • getProperties

        public Map<String,​String> getProperties()
        Return a map of non type-safe custom properties.
        Specified by:
        getProperties in interface jakarta.validation.spi.ConfigurationState
        Returns:
        null
      • isIgnoreXmlConfiguration

        public boolean isIgnoreXmlConfiguration()
        Returns true if Configuration.ignoreXMLConfiguration() has been called. In this case, we ignore META-INF/validation.xml
        Specified by:
        isIgnoreXmlConfiguration in interface jakarta.validation.spi.ConfigurationState
        Returns:
        true
      • getMappingStreams

        public Set<InputStream> getMappingStreams()
        Specified by:
        getMappingStreams in interface jakarta.validation.spi.ConfigurationState
      • getMessageInterpolator

        public jakarta.validation.MessageInterpolator getMessageInterpolator()
        Specified by:
        getMessageInterpolator in interface jakarta.validation.spi.ConfigurationState
      • getBootstrapConfiguration

        public jakarta.validation.BootstrapConfiguration getBootstrapConfiguration()
        Specified by:
        getBootstrapConfiguration in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
      • buildValidatorFactory

        public jakarta.validation.ValidatorFactory buildValidatorFactory()
        main factory method to build a ValidatorFactory
        Specified by:
        buildValidatorFactory in interface jakarta.validation.Configuration<ApacheValidatorConfiguration>
        Throws:
        jakarta.validation.ValidationException - if the ValidatorFactory cannot be built
      • getConstraintValidatorFactory

        public jakarta.validation.ConstraintValidatorFactory getConstraintValidatorFactory()
        Specified by:
        getConstraintValidatorFactory in interface jakarta.validation.spi.ConfigurationState
        Returns:
        the constraint validator factory of this configuration.
      • getTraversableResolver

        public jakarta.validation.TraversableResolver getTraversableResolver()
        Specified by:
        getTraversableResolver in interface jakarta.validation.spi.ConfigurationState
      • getParameterNameProvider

        public jakarta.validation.ParameterNameProvider getParameterNameProvider()
        Specified by:
        getParameterNameProvider in interface jakarta.validation.spi.ConfigurationState
      • getClockProvider

        public jakarta.validation.ClockProvider getClockProvider()
        Specified by:
        getClockProvider in interface jakarta.validation.spi.ConfigurationState
      • getValueExtractors

        public Set<jakarta.validation.valueextraction.ValueExtractor<?>> getValueExtractors()
        Specified by:
        getValueExtractors in interface jakarta.validation.spi.ConfigurationState
      • deferBootstrapOverrides

        public void deferBootstrapOverrides()
      • releaseDeferredBootstrapOverrides

        public void releaseDeferredBootstrapOverrides()