Class ScannedResourceAdvisor.ScannedResourceAdvisorHelper

  • All Implemented Interfaces:
    org.springframework.beans.factory.config.BeanPostProcessor
    Enclosing class:
    ScannedResourceAdvisor

    public static final class ScannedResourceAdvisor.ScannedResourceAdvisorHelper
    extends Object
    implements org.springframework.beans.factory.config.BeanPostProcessor
    实现 BeanPostProcessor 接口把 ScannedMethodInterceptor 实例注入到 ScannedResourceAdvisor 中, 不使用 "Spring Bean" 注入的原因是防止 ScannedMethodInterceptor 实例提早创建从而影响应用其它实例的生命周期
    • Method Detail

      • 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