public class AnnotationCommandHandlerBeanPostProcessor extends AbstractAnnotationHandlerBeanPostProcessor<MessageHandler<CommandMessage<?>>,AnnotationCommandHandlerAdapter>
CommandHandler
annotated methods.Constructor and Description |
---|
AnnotationCommandHandlerBeanPostProcessor() |
Modifier and Type | Method and Description |
---|---|
protected Class<?>[] |
getAdapterInterfaces()
Returns the interface that the adapter implements to connect the annotated method to the actual interface
definition.
|
protected AnnotationCommandHandlerAdapter |
initializeAdapterFor(Object bean,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
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. |
postProcessAfterInitialization, postProcessBeforeInitialization, setBeanFactory, setHandlerDefinition, setParameterResolverFactory
public AnnotationCommandHandlerBeanPostProcessor()
protected Class<?>[] getAdapterInterfaces()
AbstractAnnotationHandlerBeanPostProcessor
getAdapterInterfaces
in class AbstractAnnotationHandlerBeanPostProcessor<MessageHandler<CommandMessage<?>>,AnnotationCommandHandlerAdapter>
protected boolean isPostProcessingCandidate(Class<?> targetClass)
AbstractAnnotationHandlerBeanPostProcessor
targetClass
should be post processed.isPostProcessingCandidate
in class AbstractAnnotationHandlerBeanPostProcessor<MessageHandler<CommandMessage<?>>,AnnotationCommandHandlerAdapter>
targetClass
- The type of beanprotected AnnotationCommandHandlerAdapter initializeAdapterFor(Object bean, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition)
AbstractAnnotationHandlerBeanPostProcessor
bean
. This adapter will receive all event
handler calls to be handled by this bean.initializeAdapterFor
in class AbstractAnnotationHandlerBeanPostProcessor<MessageHandler<CommandMessage<?>>,AnnotationCommandHandlerAdapter>
bean
- The bean that the EventListenerAdapter has to adaptparameterResolverFactory
- The parameter resolver factory that provides the parameter resolvers for the
annotated handlershandlerDefinition
- The handler definition used to create concrete handlersbean
Copyright © 2010–2018. All rights reserved.