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, setApplicationContext
public AnnotationCommandHandlerBeanPostProcessor()
protected Class<?> getAdapterInterface()
AbstractAnnotationHandlerBeanPostProcessor
getAdapterInterface
in class AbstractAnnotationHandlerBeanPostProcessor
protected boolean isPostProcessingCandidate(Class<?> targetClass)
AbstractAnnotationHandlerBeanPostProcessor
targetClass
should be post processed.isPostProcessingCandidate
in class AbstractAnnotationHandlerBeanPostProcessor
targetClass
- The type of beanprotected AnnotationCommandHandlerAdapter initializeAdapterFor(Object bean)
AbstractAnnotationHandlerBeanPostProcessor
bean
. This adapter will receive all event
handler calls to be handled by this bean.initializeAdapterFor
in class AbstractAnnotationHandlerBeanPostProcessor
bean
- The bean that the EventListenerAdapter has to adaptbean
public void setCommandBus(CommandBus commandBus)
commandBus
- the event bus to subscribe detected event listeners toCopyright © 2010-2013. All Rights Reserved.