Class GenericBeanPostProcessorAdapter<T>

java.lang.Object
io.microsphere.spring.beans.factory.config.GenericBeanPostProcessorAdapter<T>
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
Direct Known Subclasses:
InterceptingApplicationEventMulticasterProxy

public abstract class GenericBeanPostProcessorAdapter<T> extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
Generic BeanPostProcessor Adapter
Since:
2017.01.22
Author:
Mercy
See Also:
  • BeanPostProcessor
  • Constructor Details

    • GenericBeanPostProcessorAdapter

      public GenericBeanPostProcessorAdapter()
  • Method Details

    • postProcessBeforeInitialization

      public final 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 final 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
    • getBeanType

      public final Class<T> getBeanType()
      Bean Type
      Returns:
      Bean Type
    • doPostProcessBeforeInitialization

      protected T doPostProcessBeforeInitialization(T bean, String beanName) throws org.springframework.beans.BeansException
      Adapter BeanPostProcessor#postProcessBeforeInitialization(Object, String) method , sub-type could override this method.
      Parameters:
      bean - Bean Object
      beanName - Bean Name
      Returns:
      Bean Object
      Throws:
      org.springframework.beans.BeansException
      See Also:
      • BeanPostProcessor.postProcessBeforeInitialization(Object, String)
    • doPostProcessAfterInitialization

      protected T doPostProcessAfterInitialization(T bean, String beanName) throws org.springframework.beans.BeansException
      Adapter BeanPostProcessor#postProcessAfterInitialization(Object, String) method , sub-type could override this method.
      Parameters:
      bean - Bean Object
      beanName - Bean Name
      Returns:
      Bean Object
      Throws:
      org.springframework.beans.BeansException
      See Also:
      • BeanPostProcessor.postProcessAfterInitialization(Object, String)
    • processBeforeInitialization

      protected void processBeforeInitialization(T bean, String beanName) throws org.springframework.beans.BeansException
      Process Bean with name without return value before initialization,

      This method will be invoked by BeanPostProcessor#postProcessBeforeInitialization(Object, String)

      Parameters:
      bean - Bean Object
      beanName - Bean Name
      Throws:
      org.springframework.beans.BeansException - in case of errors
    • processAfterInitialization

      protected void processAfterInitialization(T bean, String beanName) throws org.springframework.beans.BeansException
      Process Bean with name without return value after initialization,

      This method will be invoked by BeanPostProcessor#postProcessAfterInitialization(Object, String)

      Parameters:
      bean - Bean Object
      beanName - Bean Name
      Throws:
      org.springframework.beans.BeansException - in case of errors