类 AnnotationInjectedBeanPostProcessor<A extends Annotation>
- java.lang.Object
-
- org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
-
- com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor<A>
-
- 所有已实现的接口:
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.EnvironmentAware
,org.springframework.core.Ordered
,org.springframework.core.PriorityOrdered
public abstract class AnnotationInjectedBeanPostProcessor<A extends Annotation> extends org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter implements org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor, org.springframework.core.PriorityOrdered, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EnvironmentAware, org.springframework.beans.factory.DisposableBean
Abstract genericBeanPostProcessor
implementation for customized annotation that annotated injected-object.The source code is cloned from https://github.com/alibaba/spring-context-support/blob/1.0.2/src/main/java/com/alibaba/spring/beans/factory/annotation/AnnotationInjectedBeanPostProcessor.java
- 从以下版本开始:
- 2.6.6
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 class
AnnotationInjectedBeanPostProcessor.AnnotatedFieldElement
class
AnnotationInjectedBeanPostProcessor.AnnotatedInjectionMetadata
AnnotationInjectedBeanPostProcessor
InjectionMetadata
implementationclass
AnnotationInjectedBeanPostProcessor.AnnotatedMethodElement
-
构造器概要
构造器 构造器 说明 AnnotationInjectedBeanPostProcessor()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
destroy()
org.springframework.beans.factory.annotation.InjectionMetadata
findInjectionMetadata(String beanName, Class<?> clazz, org.springframework.beans.PropertyValues pvs)
Class<A>
getAnnotationType()
Annotation typeint
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
setBeanClassLoader(ClassLoader classLoader)
void
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
void
setEnvironment(org.springframework.core.env.Environment environment)
void
setOrder(int order)
-
-
-
方法详细资料
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
- 指定者:
setBeanFactory
在接口中org.springframework.beans.factory.BeanFactoryAware
- 抛出:
org.springframework.beans.BeansException
-
postProcessPropertyValues
public org.springframework.beans.PropertyValues postProcessPropertyValues(org.springframework.beans.PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName) throws org.springframework.beans.factory.BeanCreationException
- 指定者:
postProcessPropertyValues
在接口中org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
- 覆盖:
postProcessPropertyValues
在类中org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
- 抛出:
org.springframework.beans.factory.BeanCreationException
-
findInjectionMetadata
public org.springframework.beans.factory.annotation.InjectionMetadata findInjectionMetadata(String beanName, Class<?> clazz, org.springframework.beans.PropertyValues pvs)
-
postProcessMergedBeanDefinition
public void postProcessMergedBeanDefinition(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition, Class<?> beanType, String beanName)
- 指定者:
postProcessMergedBeanDefinition
在接口中org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor
-
getOrder
public int getOrder()
- 指定者:
getOrder
在接口中org.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
destroy
public void destroy() throws Exception
- 指定者:
destroy
在接口中org.springframework.beans.factory.DisposableBean
- 抛出:
Exception
-
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- 指定者:
setBeanClassLoader
在接口中org.springframework.beans.factory.BeanClassLoaderAware
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment
在接口中org.springframework.context.EnvironmentAware
-
-