public class ReferenceAnnotationBeanPostProcessor extends AnnotationInjectedBeanPostProcessor<Reference> implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
BeanPostProcessor implementation
that Consumer service Reference annotated fieldsAnnotationInjectedBeanPostProcessor.AnnotatedFieldElement, AnnotationInjectedBeanPostProcessor.AnnotatedInjectionMetadata, AnnotationInjectedBeanPostProcessor.AnnotatedMethodElement| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_NAME
The bean name of
ReferenceAnnotationBeanPostProcessor |
| Constructor and Description |
|---|
ReferenceAnnotationBeanPostProcessor() |
| 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(org.springframework.context.ApplicationEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
findInjectionMetadata, getAnnotationType, getOrder, postProcessMergedBeanDefinition, postProcessPropertyValues, setBeanClassLoader, setBeanFactory, setEnvironment, setOrderdetermineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, predictBeanTypepublic static final String BEAN_NAME
ReferenceAnnotationBeanPostProcessorpublic ReferenceAnnotationBeanPostProcessor()
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 setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListenerpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeandestroy in class AnnotationInjectedBeanPostProcessor<Reference>ExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.