public class AnnotationQueryHandlerBeanPostProcessor extends AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.queryhandling.QueryHandlerAdapter,org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter>
QueryHandler
annotated methods.| Constructor and Description |
|---|
AnnotationQueryHandlerBeanPostProcessor() |
| 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 org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter |
initializeAdapterFor(Object o,
org.axonframework.messaging.annotation.ParameterResolverFactory parameterResolverFactory,
org.axonframework.messaging.annotation.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, setParameterResolverFactorypublic AnnotationQueryHandlerBeanPostProcessor()
protected Class<?>[] getAdapterInterfaces()
AbstractAnnotationHandlerBeanPostProcessorgetAdapterInterfaces in class AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.queryhandling.QueryHandlerAdapter,org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter>protected boolean isPostProcessingCandidate(Class<?> targetClass)
AbstractAnnotationHandlerBeanPostProcessortargetClass should be post processed.isPostProcessingCandidate in class AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.queryhandling.QueryHandlerAdapter,org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter>targetClass - The type of beanprotected org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter initializeAdapterFor(Object o, org.axonframework.messaging.annotation.ParameterResolverFactory parameterResolverFactory, org.axonframework.messaging.annotation.HandlerDefinition handlerDefinition)
AbstractAnnotationHandlerBeanPostProcessorbean. This adapter will receive all event
handler calls to be handled by this bean.initializeAdapterFor in class AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.queryhandling.QueryHandlerAdapter,org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter>o - 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 handlersbeanCopyright © 2010–2020. All rights reserved.