Package io.dropwizard.configuration
Class DefaultConfigurationFactoryFactory<T>
- java.lang.Object
-
- io.dropwizard.configuration.DefaultConfigurationFactoryFactory<T>
-
- All Implemented Interfaces:
ConfigurationFactoryFactory<T>
public class DefaultConfigurationFactoryFactory<T> extends Object implements ConfigurationFactoryFactory<T>
-
-
Constructor Summary
Constructors Constructor Description DefaultConfigurationFactoryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.ObjectMapperconfigureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)Provides additional configuration for theObjectMapperused to read the configuration.ConfigurationFactory<T>create(Class<T> klass, javax.validation.Validator validator, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String propertyPrefix)
-
-
-
Method Detail
-
create
public ConfigurationFactory<T> create(Class<T> klass, javax.validation.Validator validator, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String propertyPrefix)
- Specified by:
createin interfaceConfigurationFactoryFactory<T>
-
configureObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Provides additional configuration for theObjectMapperused to read the configuration. By defaultDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIESis enabled to protect against misconfiguration.- Parameters:
objectMapper- template to be configured- Returns:
- configured object mapper
-
-