Class AnnotationCommandHandlerBeanPostProcessor
java.lang.Object
org.axonframework.spring.config.AbstractAnnotationHandlerBeanPostProcessor<MessageHandler<CommandMessage<?>>,AnnotationCommandHandlerAdapter<?>>
org.axonframework.spring.config.annotation.AnnotationCommandHandlerBeanPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.config.BeanPostProcessor
@Deprecated
public class AnnotationCommandHandlerBeanPostProcessor
extends AbstractAnnotationHandlerBeanPostProcessor<MessageHandler<CommandMessage<?>>,AnnotationCommandHandlerAdapter<?>>
Deprecated.
Spring Bean post processor that automatically generates an adapter for each bean containing
CommandHandler
annotated methods.- Since:
- 0.5
- Author:
- Allard Buijze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>[]Deprecated.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) Deprecated.Create an AnnotationEventListenerAdapter instance of the givenbean.protected booleanisPostProcessingCandidate(Class<?> targetClass) Deprecated.Indicates whether an object of the giventargetClassshould be post processed.Methods inherited from class org.axonframework.spring.config.AbstractAnnotationHandlerBeanPostProcessor
postProcessAfterInitialization, postProcessBeforeInitialization, setBeanFactory, setHandlerDefinition, setParameterResolverFactory
-
Constructor Details
-
AnnotationCommandHandlerBeanPostProcessor
public AnnotationCommandHandlerBeanPostProcessor()Deprecated.
-
-
Method Details
-
getAdapterInterfaces
Deprecated.Description copied from class:AbstractAnnotationHandlerBeanPostProcessorReturns the interface that the adapter implements to connect the annotated method to the actual interface definition. Calls to methods declared on this interface are passed to the adapter, while other method calls will be forwarded to the annotated object itself. Note: this *must* be an interface. It may not be an (abstract) class.- Specified by:
getAdapterInterfacesin classAbstractAnnotationHandlerBeanPostProcessor<MessageHandler<CommandMessage<?>>,AnnotationCommandHandlerAdapter<?>> - Returns:
- the interface that the adapter implements to connect the annotated method to the actual interface definition
-
isPostProcessingCandidate
Deprecated.Description copied from class:AbstractAnnotationHandlerBeanPostProcessorIndicates whether an object of the giventargetClassshould be post processed.- Specified by:
isPostProcessingCandidatein classAbstractAnnotationHandlerBeanPostProcessor<MessageHandler<CommandMessage<?>>,AnnotationCommandHandlerAdapter<?>> - Parameters:
targetClass- The type of bean- Returns:
- true to post process bean of given type, false otherwise
-
initializeAdapterFor
protected AnnotationCommandHandlerAdapter<?> initializeAdapterFor(Object bean, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Deprecated.Description copied from class:AbstractAnnotationHandlerBeanPostProcessorCreate an AnnotationEventListenerAdapter instance of the givenbean. This adapter will receive all event handler calls to be handled by this bean.- Specified by:
initializeAdapterForin classAbstractAnnotationHandlerBeanPostProcessor<MessageHandler<CommandMessage<?>>,AnnotationCommandHandlerAdapter<?>> - Parameters:
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 handlers- Returns:
- an event handler adapter for the given
bean
-
MessageHandlerLookupandMessageHandlerConfigurer.