Class DefaultConfigurationFactoryFactory<T>

    • Constructor Detail

      • DefaultConfigurationFactoryFactory

        public DefaultConfigurationFactoryFactory()
    • Method Detail

      • create

        public ConfigurationFactory<T> create​(Class<T> klass,
                                              javax.validation.Validator validator,
                                              com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                              String propertyPrefix)
        Description copied from interface: ConfigurationFactoryFactory
        Creates a new configuration factory for the given class.
        Specified by:
        create in interface ConfigurationFactoryFactory<T>
        Parameters:
        klass - the configuration class
        validator - the validator to use
        objectMapper - the Jackson ObjectMapper to use
        propertyPrefix - the system property name prefix used by overrides
        Returns:
        the new configuration factory
      • configureObjectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Provides additional configuration for the ObjectMapper used to read the configuration. By default DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES is enabled to protect against misconfiguration.
        Parameters:
        objectMapper - template to be configured
        Returns:
        configured object mapper