T - the type of the configuration objects to producepublic class DefaultConfigurationFactoryFactory<T> extends Object implements ConfigurationFactoryFactory<T>
ConfigurationFactoryFactory interface. An instance of this class constructs a new YamlConfigurationFactory.| Constructor and Description |
|---|
DefaultConfigurationFactoryFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Provides additional configuration for the
ObjectMapper used to read
the configuration. |
ConfigurationFactory<T> |
create(Class<T> klass,
javax.validation.Validator validator,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
String propertyPrefix)
Creates a new configuration factory for the given class.
|
public ConfigurationFactory<T> create(Class<T> klass, javax.validation.Validator validator, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String propertyPrefix)
ConfigurationFactoryFactorycreate in interface ConfigurationFactoryFactory<T>klass - the configuration classvalidator - the validator to useobjectMapper - the Jackson ObjectMapper to usepropertyPrefix - the system property name prefix used by overridesprotected com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
ObjectMapper used to read
the configuration. By default DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
is enabled to protect against misconfiguration.objectMapper - template to be configuredCopyright © 2011. All rights reserved.