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
BeanPostProcessor implementation for customized annotation that annotated injected-object.| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAnnotationBeanPostProcessor.AnnotatedFieldElement |
| Constructor and Description |
|---|
AbstractAnnotationBeanPostProcessor(Class<? extends Annotation>... annotationTypes) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Class<? extends Annotation> |
getAnnotationType()
Deprecated.
2.7.3, uses
getAnnotationTypes() |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
boolean |
postProcessAfterInstantiation(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInstantiation(Class<?> beanClass,
String beanName) |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic AbstractAnnotationBeanPostProcessor(Class<? extends Annotation>... annotationTypes)
annotationTypes - the multiple types of annotations@Deprecated public final Class<? extends Annotation> getAnnotationType()
getAnnotationTypes()public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic 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.EnvironmentAwarepublic Object postProcessBeforeInstantiation(Class<?> beanClass, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInstantiation in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessororg.springframework.beans.BeansExceptionpublic boolean postProcessAfterInstantiation(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInstantiation in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.