public class ConfigurationPropertiesBindingPostProcessor extends Object implements BeanPostProcessor, BeanFactoryAware, ResourceLoaderAware, EnvironmentAware, ApplicationContextAware, InitializingBean, DisposableBean, ApplicationListener<ContextRefreshedEvent>, PriorityOrdered
| Modifier and Type | Field and Description |
|---|---|
static String |
VALIDATOR_BEAN_NAME
The bean name of the configuration properties validator.
|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ConfigurationPropertiesBindingPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
int |
getOrder()
Return the order of the bean.
|
void |
onApplicationEvent(ContextRefreshedEvent event) |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setBeanMetaDataStore(ConfigurationBeanFactoryMetaData beans)
Set the bean meta-data store.
|
void |
setConversionService(ConversionService conversionService)
Set the conversion service used to convert property values.
|
void |
setConverters(List<Converter<?,?>> converters)
A list of custom converters (in addition to the defaults) to use when converting
properties for binding.
|
void |
setEnvironment(Environment environment) |
void |
setGenericConverters(List<GenericConverter> converters)
A list of custom converters (in addition to the defaults) to use when converting
properties for binding.
|
void |
setOrder(int order)
Set the order of the bean.
|
void |
setPropertySources(PropertySources propertySources)
Set the property sources to bind.
|
void |
setResourceLoader(ResourceLoader resourceLoader) |
void |
setValidator(Validator validator)
Set the bean validator used to validate property fields.
|
public static final String VALIDATOR_BEAN_NAME
public ConfigurationPropertiesBindingPostProcessor()
@Autowired(required=false) @ConfigurationPropertiesBinding public void setConverters(List<Converter<?,?>> converters)
converters - the converters to set@Autowired(required=false) @ConfigurationPropertiesBinding public void setGenericConverters(List<GenericConverter> converters)
converters - the converters to setpublic void setOrder(int order)
order - the orderpublic int getOrder()
public void setPropertySources(PropertySources propertySources)
propertySources - the property sourcespublic void setValidator(Validator validator)
validator - the validatorpublic void setConversionService(ConversionService conversionService)
conversionService - the conversion servicepublic void setBeanMetaDataStore(ConfigurationBeanFactoryMetaData beans)
beans - the bean meta data storepublic void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionpublic void setResourceLoader(ResourceLoader resourceLoader)
setResourceLoader in interface ResourceLoaderAwarepublic void setEnvironment(Environment environment)
setEnvironment in interface EnvironmentAwarepublic void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext in interface ApplicationContextAwarepublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void onApplicationEvent(ContextRefreshedEvent event)
onApplicationEvent in interface ApplicationListener<ContextRefreshedEvent>public void destroy()
throws Exception
destroy in interface DisposableBeanExceptionpublic Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException
postProcessBeforeInitialization in interface BeanPostProcessorBeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException
postProcessAfterInitialization in interface BeanPostProcessorBeansExceptionCopyright © 2016 Pivotal Software, Inc.. All rights reserved.