类 ReferenceAnnotationBeanPostProcessor
- java.lang.Object
-
- org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
-
- com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor<Reference>
-
- com.alibaba.dubbo.config.spring.beans.factory.annotation.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 AnnotationInjectedBeanPostProcessor<Reference> implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
BeanPostProcessor
implementation that Consumer serviceReference
annotated fields- 从以下版本开始:
- 2.5.7
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor
AnnotationInjectedBeanPostProcessor.AnnotatedFieldElement, AnnotationInjectedBeanPostProcessor.AnnotatedInjectionMetadata, AnnotationInjectedBeanPostProcessor.AnnotatedMethodElement
-
-
字段概要
字段 修饰符和类型 字段 说明 static String
BEAN_NAME
The bean name ofReferenceAnnotationBeanPostProcessor
-
构造器概要
构造器 构造器 说明 ReferenceAnnotationBeanPostProcessor()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
destroy()
Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,ReferenceBean<?>>
getInjectedFieldReferenceBeanMap()
GetReferenceBean
Map
in injected field.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,ReferenceBean<?>>
getInjectedMethodReferenceBeanMap()
GetReferenceBean
Map
in injected method.Collection<ReferenceBean<?>>
getReferenceBeans()
Gets all beans ofReferenceBean
void
onApplicationEvent(org.springframework.context.ApplicationEvent event)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
从类继承的方法 com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor
findInjectionMetadata, getAnnotationType, getOrder, postProcessMergedBeanDefinition, postProcessPropertyValues, setBeanClassLoader, setBeanFactory, setEnvironment, setOrder
-
-
-
-
字段详细资料
-
BEAN_NAME
public static final String BEAN_NAME
The bean name ofReferenceAnnotationBeanPostProcessor
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
getReferenceBeans
public Collection<ReferenceBean<?>> getReferenceBeans()
Gets all beans ofReferenceBean
- 返回:
- non-null read-only
Collection
- 从以下版本开始:
- 2.5.9
-
getInjectedFieldReferenceBeanMap
public Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,ReferenceBean<?>> getInjectedFieldReferenceBeanMap()
GetReferenceBean
Map
in injected field.- 返回:
- non-null
Map
- 从以下版本开始:
- 2.5.11
-
getInjectedMethodReferenceBeanMap
public Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,ReferenceBean<?>> getInjectedMethodReferenceBeanMap()
GetReferenceBean
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
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- 指定者:
onApplicationEvent
在接口中org.springframework.context.ApplicationListener
-
destroy
public void destroy() throws Exception
- 指定者:
destroy
在接口中org.springframework.beans.factory.DisposableBean
- 覆盖:
destroy
在类中AnnotationInjectedBeanPostProcessor<Reference>
- 抛出:
Exception
-
-