public abstract class AbstractAnnotationHandlerBeanPostProcessor extends Object implements org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
AbstractAnnotationHandlerBeanPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<?> |
getAdapterInterface()
Returns the interface that the adapter implements to connect the annotated method to the actual interface
definition.
|
protected org.springframework.context.ApplicationContext |
getApplicationContext()
Returns the ApplicationContext this Bean Post Processor is registered in.
|
protected abstract Subscribable |
initializeAdapterFor(Object bean)
Create an AnnotationEventListenerAdapter instance of the given
bean. |
protected abstract boolean |
isPostProcessingCandidate(Class<?> targetClass)
Indicates whether an object of the given
targetClass should be post processed. |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
void |
postProcessBeforeDestruction(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public AbstractAnnotationHandlerBeanPostProcessor()
public 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.BeansExceptionprotected abstract Class<?> getAdapterInterface()
protected abstract boolean isPostProcessingCandidate(Class<?> targetClass)
targetClass should be post processed.targetClass - The type of beanpublic void postProcessBeforeDestruction(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessororg.springframework.beans.BeansExceptionprotected abstract Subscribable initializeAdapterFor(Object bean)
bean. This adapter will receive all event
handler calls to be handled by this bean.bean - The bean that the EventListenerAdapter has to adaptbeanprotected org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2010-2013. All Rights Reserved.