org.springframework.boot.context.properties

Class ConfigurationPropertiesBindingPostProcessor

  • java.lang.Object
    • 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, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered


    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.core.PriorityOrdered
    BeanPostProcessor to bind PropertySources to beans annotated with ConfigurationProperties.
    Author:
    Dave Syer, Phillip Webb, Christian Dupuis
    • Constructor Detail

      • ConfigurationPropertiesBindingPostProcessor

        public ConfigurationPropertiesBindingPostProcessor()
    • Method Detail

      • setOrder

        public void setOrder(int order)
        Parameters:
        order - the order to set
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
        Returns:
        the order
      • 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 © 2015 Pivotal Software, Inc.. All rights reserved.