Annotation Interface QueryHandler


Marker annotation to mark any method on an object as being a QueryHandler. Use the AnnotationQueryHandlerAdapter to subscribe the annotated class to the query bus.

The annotated method's first parameter is the query handled by that method. Optionally, the query handler may specify a second parameter of type MetaData. The active MetaData will be passed if that parameter is supplied.

Since:
3.1
Author:
Marc Gathier
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the Query this handler listens to.
  • Element Details

    • queryName

      String queryName
      The name of the Query this handler listens to. Defaults to the fully qualified class name of the payload type (i.e. first parameter).
      Returns:
      The query name
      Default:
      ""