Interface HandlerMethodPlan<M>

Type Parameters:
M - the message type used by the handling pipeline
All Superinterfaces:
HandlerDescriptor

public interface HandlerMethodPlan<M> extends HandlerDescriptor
A reusable plan for invoking one already selected handler method.

A plan contains the method, its argument-resolution strategy, and either a fixed handler target or a strategy for obtaining that target from the current HandlerInput. For example, a self-handling payload plan obtains its target from HandlerInput.getPayload() on every invocation. Implementations must be immutable and safe for concurrent use.

  • Method Details

    • invoke

      Object invoke(HandlerInput<M> input)
      Invokes the selected handler method using the supplied input.
      Parameters:
      input - the current input; it must satisfy the cache conditions under which this plan was prepared
      Returns:
      the handler method's result