Class DefaultHandlers<Case,Handler>

java.lang.Object
org.axonframework.axonserver.connector.DefaultHandlers<Case,Handler>
Type Parameters:
Case - the type of the case
Handler - the type of the handler
All Implemented Interfaces:
Handlers<Case,Handler>

@Deprecated public class DefaultHandlers<Case,Handler> extends Object implements Handlers<Case,Handler>
Deprecated.
in through use of the AxonServer java connector
Default implementation of Handlers. Uses a map to hold a registry of handlers.
Since:
4.2.1
Author:
Sara Pellegrini, Milan Savic
  • Constructor Details

    • DefaultHandlers

      public DefaultHandlers()
      Deprecated.
  • Method Details

    • get

      public Collection<Handler> get(String context, Case requestCase)
      Deprecated.
      Description copied from interface: Handlers
      Gets all handlers that match given context and requestCase.
      Specified by:
      get in interface Handlers<Case,Handler>
      Parameters:
      context - the context
      requestCase - the type of instruction to respond to
      Returns:
      collection of corresponding handlers
    • register

      public void register(BiPredicate<String,Case> handlerSelector, Handler handler)
      Deprecated.
      Description copied from interface: Handlers
      Registers a handler that can handle instructions matching given handlerSelector predicate.
      Specified by:
      register in interface Handlers<Case,Handler>
      Parameters:
      handlerSelector - selects a handler based on context and request case
      handler - the handler of the instruction