public class ReferenceAnnotationBeanPostProcessor extends com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<ServiceBeanExportedEvent>
BeanPostProcessor implementation
that Consumer service Reference annotated fieldsDubboReference,
Reference,
Reference| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_NAME
The bean name of
ReferenceAnnotationBeanPostProcessor |
| Constructor and Description |
|---|
ReferenceAnnotationBeanPostProcessor()
@com.alibaba.dubbo.config.annotation.Reference has been supported since 2.7.3 |
| Modifier and Type | Method and Description |
|---|---|
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(ServiceBeanExportedEvent event)
The
InvocationHandler class for the referenced Bean |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
getAnnotationType, getOrder, postProcessMergedBeanDefinition, postProcessPropertyValues, setBeanClassLoader, setBeanFactory, setEnvironment, setOrderdetermineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, predictBeanTypepublic static final String BEAN_NAME
ReferenceAnnotationBeanPostProcessorpublic ReferenceAnnotationBeanPostProcessor()
@com.alibaba.dubbo.config.annotation.Reference has been supported since 2.7.3
@DubboReference has been supported since 2.7.7
public Collection<ReferenceBean<?>> getReferenceBeans()
ReferenceBeanCollectionpublic Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,ReferenceBean<?>> getInjectedFieldReferenceBeanMap()
ReferenceBean Map in injected field.Mappublic Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,ReferenceBean<?>> getInjectedMethodReferenceBeanMap()
ReferenceBean Map in injected method.Mappublic void onApplicationEvent(ServiceBeanExportedEvent event)
InvocationHandler class for the referenced BeanonApplicationEvent in interface org.springframework.context.ApplicationListener<ServiceBeanExportedEvent>public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.