|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.util.AbstractAnnotationHandlerBeanPostProcessor
public abstract class AbstractAnnotationHandlerBeanPostProcessor
Abstract bean post processor that finds candidates for proxying. Typically used to wrap annotated beans with their respective interface implementations.
| Constructor Summary | |
|---|---|
AbstractAnnotationHandlerBeanPostProcessor()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.beans.factory.InitializingBean |
|---|
afterPropertiesSet |
| Constructor Detail |
|---|
public AbstractAnnotationHandlerBeanPostProcessor()
| Method Detail |
|---|
public Object postProcessBeforeInitialization(Object bean,
String beanName)
throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansException
public 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 bean
public 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 adapt
beanprotected 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.BeansException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||