public class AnnotationCommandHandlerBeanPostProcessor extends AbstractAnnotationHandlerBeanPostProcessor
CommandHandler annotated methods.| Constructor and Description |
|---|
AnnotationCommandHandlerBeanPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
getAdapterInterface()
Returns the interface that the adapter implements to connect the annotated method to the actual interface
definition.
|
protected AnnotationCommandHandlerAdapter |
initializeAdapterFor(Object bean)
Create an AnnotationEventListenerAdapter instance of the given
bean. |
protected boolean |
isPostProcessingCandidate(Class<?> targetClass)
Indicates whether an object of the given
targetClass should be post processed. |
void |
setCommandBus(CommandBus commandBus)
Sets the event bus to which detected event listeners should be subscribed.
|
getApplicationContext, postProcessAfterInitialization, postProcessBeforeDestruction, postProcessBeforeInitialization, setApplicationContextpublic AnnotationCommandHandlerBeanPostProcessor()
protected Class<?> getAdapterInterface()
AbstractAnnotationHandlerBeanPostProcessorgetAdapterInterface in class AbstractAnnotationHandlerBeanPostProcessorprotected boolean isPostProcessingCandidate(Class<?> targetClass)
AbstractAnnotationHandlerBeanPostProcessortargetClass should be post processed.isPostProcessingCandidate in class AbstractAnnotationHandlerBeanPostProcessortargetClass - The type of beanprotected AnnotationCommandHandlerAdapter initializeAdapterFor(Object bean)
AbstractAnnotationHandlerBeanPostProcessorbean. This adapter will receive all event
handler calls to be handled by this bean.initializeAdapterFor in class AbstractAnnotationHandlerBeanPostProcessorbean - The bean that the EventListenerAdapter has to adaptbeanpublic void setCommandBus(CommandBus commandBus)
commandBus - the event bus to subscribe detected event listeners toCopyright © 2010-2013. All Rights Reserved.