com.alibaba.dubbo.config.spring.beans.factory.annotation
Class ReferenceAnnotationBeanPostProcessor

java.lang.Object
  extended by org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
      extended by com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, 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.core.Ordered, org.springframework.core.PriorityOrdered

public class ReferenceAnnotationBeanPostProcessor
extends org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
implements org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor, org.springframework.core.PriorityOrdered, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.DisposableBean

BeanPostProcessor implementation that Consumer service Reference annotated fields

Since:
2.5.7
Author:
Mercy

Field Summary
static String BEAN_NAME
          The bean name of ReferenceAnnotationBeanPostProcessor
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ReferenceAnnotationBeanPostProcessor()
           
 
Method Summary
 void destroy()
           
 int getOrder()
           
 void postProcessMergedBeanDefinition(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition, Class<?> beanType, String beanName)
           
 org.springframework.beans.PropertyValues postProcessPropertyValues(org.springframework.beans.PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setBeanClassLoader(ClassLoader classLoader)
           
 
Methods inherited from class org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
determineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, predictBeanType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization, postProcessBeforeInitialization
 

Field Detail

BEAN_NAME

public static final String BEAN_NAME
The bean name of ReferenceAnnotationBeanPostProcessor

See Also:
Constant Field Values
Constructor Detail

ReferenceAnnotationBeanPostProcessor

public ReferenceAnnotationBeanPostProcessor()
Method Detail

postProcessPropertyValues

public org.springframework.beans.PropertyValues postProcessPropertyValues(org.springframework.beans.PropertyValues pvs,
                                                                          PropertyDescriptor[] pds,
                                                                          Object bean,
                                                                          String beanName)
                                                                   throws org.springframework.beans.factory.BeanCreationException
Specified by:
postProcessPropertyValues in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
Overrides:
postProcessPropertyValues in class org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
Throws:
org.springframework.beans.factory.BeanCreationException

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

postProcessMergedBeanDefinition

public void postProcessMergedBeanDefinition(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition,
                                            Class<?> beanType,
                                            String beanName)
Specified by:
postProcessMergedBeanDefinition in interface org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor

getOrder

public int getOrder()
Specified by:
getOrder in interface org.springframework.core.Ordered

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

setBeanClassLoader

public void setBeanClassLoader(ClassLoader classLoader)
Specified by:
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware


Copyright © 2012–2017 Alibaba. All rights reserved.