Class AbstractAnnotationBeanPostProcessor
java.lang.Object
org.apache.dubbo.config.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor
- All Implemented Interfaces:
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.DisposableBean,org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor,org.springframework.context.EnvironmentAware
- Direct Known Subclasses:
ReferenceAnnotationBeanPostProcessor
public abstract class AbstractAnnotationBeanPostProcessor
extends Object
implements org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EnvironmentAware, org.springframework.beans.factory.DisposableBean
Abstract common
BeanPostProcessor implementation for customized annotation that annotated injected-object.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAnnotationBeanPostProcessor(Class<? extends Annotation>... annotationTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()final Class<? extends Annotation> Deprecated.postProcessAfterInitialization(Object bean, String beanName) booleanpostProcessAfterInstantiation(Object bean, String beanName) postProcessBeforeInitialization(Object bean, String beanName) postProcessBeforeInstantiation(Class<?> beanClass, String beanName) voidsetBeanClassLoader(ClassLoader classLoader) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetEnvironment(org.springframework.core.env.Environment environment) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
postProcessProperties, postProcessPropertyValuesMethods inherited from interface org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor
postProcessMergedBeanDefinition, resetBeanDefinition
-
Constructor Details
-
AbstractAnnotationBeanPostProcessor
- Parameters:
annotationTypes- the multiple types ofannotations
-
-
Method Details
-
getAnnotationType
Deprecated.2.7.3, usesgetAnnotationTypes()Annotation type- Returns:
- non-null
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
postProcessBeforeInstantiation
public Object postProcessBeforeInstantiation(Class<?> beanClass, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInstantiationin interfaceorg.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
postProcessAfterInstantiation
public boolean postProcessAfterInstantiation(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInstantiationin interfaceorg.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
getAnnotationTypes()