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