类 SmartAutowiredBeanProcessor

  • 所有已实现的接口:
    AutowiredBeanProcessor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware, org.springframework.core.Ordered

    @Component
    public class SmartAutowiredBeanProcessor
    extends BaseAutowiredBeanProcessor
    • 构造器详细资料

      • SmartAutowiredBeanProcessor

        public SmartAutowiredBeanProcessor()
    • 方法详细资料

      • interceptAnnotation

        public List<Class<? extends Annotation>> interceptAnnotation()
        从接口复制的说明: AutowiredBeanProcessor
        Specify the injection annotations that need to be intercepted
        返回:
        the custom autowired annotations
      • getInjectedBean

        public Object getInjectedBean​(AutowiredInvocation invocation)
        从接口复制的说明: AutowiredBeanProcessor
        How to obtain the beans that need to be injected
        参数:
        invocation - Context information when injected
        返回:
        get inject bean
      • isSameClass

        public boolean isSameClass​(Class<?> class1,
                                   Class<?> class2)