org.springframework.boot.context.properties
Class ConfigurationPropertiesBindingPostProcessor

java.lang.Object
  extended by org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware, org.springframework.context.ResourceLoaderAware

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

BeanPostProcessor to bind PropertySources to beans annotated with ConfigurationProperties.

Author:
Dave Syer, Phillip Webb

Field Summary
static String VALIDATOR_BEAN_NAME
           
 
Constructor Summary
ConfigurationPropertiesBindingPostProcessor()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 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 setConversionService(org.springframework.core.convert.ConversionService conversionService)
           
 void setEnvironment(org.springframework.core.env.Environment environment)
           
 void setPropertySources(org.springframework.core.env.PropertySources propertySources)
           
 void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
           
 void setValidator(org.springframework.validation.Validator validator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATOR_BEAN_NAME

public static final String VALIDATOR_BEAN_NAME
See Also:
Constant Field Values
Constructor Detail

ConfigurationPropertiesBindingPostProcessor

public ConfigurationPropertiesBindingPostProcessor()
Method Detail

setPropertySources

public void setPropertySources(org.springframework.core.env.PropertySources propertySources)
Parameters:
propertySources -

setValidator

public void setValidator(org.springframework.validation.Validator validator)
Parameters:
validator - the validator to set

setConversionService

public void setConversionService(org.springframework.core.convert.ConversionService conversionService)
Parameters:
conversionService - the conversionService to set

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException

setResourceLoader

public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Specified by:
setResourceLoader in interface org.springframework.context.ResourceLoaderAware

setEnvironment

public void setEnvironment(org.springframework.core.env.Environment environment)
Specified by:
setEnvironment in interface org.springframework.context.EnvironmentAware

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

postProcessBeforeInitialization

public Object postProcessBeforeInitialization(Object bean,
                                              String beanName)
                                       throws org.springframework.beans.BeansException
Specified by:
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException

postProcessAfterInitialization

public Object postProcessAfterInitialization(Object bean,
                                             String beanName)
                                      throws org.springframework.beans.BeansException
Specified by:
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException


Copyright © 2013. All Rights Reserved.