类 ReferenceAnnotationBeanPostProcessor

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

    public class ReferenceAnnotationBeanPostProcessor
    extends com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor
    implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
    BeanPostProcessor implementation that Consumer service Reference annotated fields
    从以下版本开始:
    2.5.7
    另请参阅:
    DubboReference, Reference, Reference
    • 嵌套类概要

      • 从类继承的嵌套类/接口 com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor

        com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.AnnotatedFieldElement
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void destroy()  
      Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,​ReferenceBean<?>> getInjectedFieldReferenceBeanMap()
      Get ReferenceBean Map in injected field.
      Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,​ReferenceBean<?>> getInjectedMethodReferenceBeanMap()
      Get ReferenceBean Map in injected method.
      Collection<ReferenceBean<?>> getReferenceBeans()
      Gets all beans of ReferenceBean
      void onApplicationEvent​(org.springframework.context.ApplicationEvent event)  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      • 从类继承的方法 com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor

        getAnnotationType, getOrder, postProcessMergedBeanDefinition, postProcessPropertyValues, setBeanClassLoader, setBeanFactory, setEnvironment, setOrder
      • 从类继承的方法 org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter

        determineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessProperties, predictBeanType
      • 从接口继承的方法 org.springframework.beans.factory.config.BeanPostProcessor

        postProcessAfterInitialization, postProcessBeforeInitialization
      • 从接口继承的方法 org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor

        resetBeanDefinition
    • 构造器详细资料

      • ReferenceAnnotationBeanPostProcessor

        public ReferenceAnnotationBeanPostProcessor()
        @com.alibaba.dubbo.config.annotation.Reference has been supported since 2.7.3

        @DubboReference has been supported since 2.7.7

    • 方法详细资料

      • getInjectedFieldReferenceBeanMap

        public Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,​ReferenceBean<?>> getInjectedFieldReferenceBeanMap()
        Get ReferenceBean Map in injected field.
        返回:
        non-null Map
        从以下版本开始:
        2.5.11
      • getInjectedMethodReferenceBeanMap

        public Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,​ReferenceBean<?>> getInjectedMethodReferenceBeanMap()
        Get ReferenceBean Map in injected method.
        返回:
        non-null Map
        从以下版本开始:
        2.5.11
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
        抛出:
        org.springframework.beans.BeansException
      • destroy

        public void destroy()
                     throws Exception
        指定者:
        destroy 在接口中 org.springframework.beans.factory.DisposableBean
        覆盖:
        destroy 在类中 com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor
        抛出:
        Exception
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.ApplicationEvent event)
        指定者:
        onApplicationEvent 在接口中 org.springframework.context.ApplicationListener