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
BeanPostProcessor 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
| Modifier and Type | Class and Description |
|---|---|
class |
AnnotationInjectedBeanPostProcessor.AnnotatedFieldElement
|
class |
AnnotationInjectedBeanPostProcessor.AnnotatedInjectionMetadata
A InjectionMetadata implementation |
class |
AnnotationInjectedBeanPostProcessor.AnnotatedMethodElement
|
| Constructor and Description |
|---|
AnnotationInjectedBeanPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
org.springframework.beans.factory.annotation.InjectionMetadata |
findInjectionMetadata(String beanName,
Class<?> clazz,
org.springframework.beans.PropertyValues pvs) |
Class<A> |
getAnnotationType()
Annotation type
|
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 |
setBeanClassLoader(ClassLoader classLoader) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
void |
setOrder(int order) |
determineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, predictBeanTypepublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic org.springframework.beans.PropertyValues postProcessPropertyValues(org.springframework.beans.PropertyValues pvs,
PropertyDescriptor[] pds,
Object bean,
String beanName)
throws org.springframework.beans.factory.BeanCreationException
postProcessPropertyValues in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorpostProcessPropertyValues in class org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapterorg.springframework.beans.factory.BeanCreationExceptionpublic org.springframework.beans.factory.annotation.InjectionMetadata findInjectionMetadata(String beanName, Class<?> clazz, org.springframework.beans.PropertyValues pvs)
public void postProcessMergedBeanDefinition(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition,
Class<?> beanType,
String beanName)
postProcessMergedBeanDefinition in interface org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessorpublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwareCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.