Class AnnotationQueryHandlerBeanPostProcessor

java.lang.Object
org.axonframework.spring.config.AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.queryhandling.QueryHandlerAdapter,org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter>
org.axonframework.spring.config.annotation.AnnotationQueryHandlerBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor

@Deprecated public class AnnotationQueryHandlerBeanPostProcessor extends AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.queryhandling.QueryHandlerAdapter,org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter>
Deprecated.
Spring Bean post processor that automatically generates an adapter for each bean containing QueryHandler annotated methods.
Since:
3.1
Author:
Marc Gathier
  • Constructor Details

    • AnnotationQueryHandlerBeanPostProcessor

      public AnnotationQueryHandlerBeanPostProcessor()
      Deprecated.
  • Method Details

    • getAdapterInterfaces

      protected Class<?>[] getAdapterInterfaces()
      Deprecated.
      Description copied from class: AbstractAnnotationHandlerBeanPostProcessor
      Returns 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:
      getAdapterInterfaces in class AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.queryhandling.QueryHandlerAdapter,org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter>
      Returns:
      the interface that the adapter implements to connect the annotated method to the actual interface definition
    • isPostProcessingCandidate

      protected boolean isPostProcessingCandidate(Class<?> targetClass)
      Deprecated.
      Description copied from class: AbstractAnnotationHandlerBeanPostProcessor
      Indicates whether an object of the given targetClass should be post processed.
      Specified by:
      isPostProcessingCandidate in class AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.queryhandling.QueryHandlerAdapter,org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter>
      Parameters:
      targetClass - The type of bean
      Returns:
      true to post process bean of given type, false otherwise
    • initializeAdapterFor

      protected org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter initializeAdapterFor(Object o, org.axonframework.messaging.annotation.ParameterResolverFactory parameterResolverFactory, org.axonframework.messaging.annotation.HandlerDefinition handlerDefinition)
      Deprecated.
      Description copied from class: AbstractAnnotationHandlerBeanPostProcessor
      Create an AnnotationEventListenerAdapter instance of the given bean. This adapter will receive all event handler calls to be handled by this bean.
      Specified by:
      initializeAdapterFor in class AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.queryhandling.QueryHandlerAdapter,org.axonframework.queryhandling.annotation.AnnotationQueryHandlerAdapter>
      Parameters:
      o - The bean that the EventListenerAdapter has to adapt
      parameterResolverFactory - The parameter resolver factory that provides the parameter resolvers for the annotated handlers
      handlerDefinition - The handler definition used to create concrete handlers
      Returns:
      an event handler adapter for the given bean