public class ConfigurationPropertiesBindingPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.core.PriorityOrdered, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME
The bean name that this post-processor is registered with.
|
static String |
VALIDATOR_BEAN_NAME
Deprecated.
since 2.2.0 in favor of
EnableConfigurationProperties.VALIDATOR_BEAN_NAME |
Constructor and Description |
---|
ConfigurationPropertiesBindingPostProcessor()
Deprecated.
since 2.2.0 in favor of
@EnableConfigurationProperties or
register(BeanDefinitionRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
int |
getOrder() |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
static void |
register(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Register a
ConfigurationPropertiesBindingPostProcessor bean if one is not
already registered. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public static final String BEAN_NAME
@Deprecated public static final String VALIDATOR_BEAN_NAME
EnableConfigurationProperties.VALIDATOR_BEAN_NAME
@Deprecated public ConfigurationPropertiesBindingPostProcessor()
@EnableConfigurationProperties
or
register(BeanDefinitionRegistry)
ConfigurationPropertiesBindingPostProcessor
instance.public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
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 static void register(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
ConfigurationPropertiesBindingPostProcessor
bean if one is not
already registered.registry
- the bean definition registryCopyright © 2020 Pivotal Software, Inc.. All rights reserved.