Interface HandlerScope

All Known Implementing Classes:
RequestHandler.Evaluator.Scope

public interface HandlerScope
This interface allows to verify whether a given event fired on one of the given channels is handled by a handler.

Instances of this interface are provided by the HandlerDefinition.Evaluators for handler annotations.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    includes(Eligible event, Eligible[] channels)
    Matches the given event and channels against the criteria for events and channels of this handler scope.
  • Method Details

    • includes

      boolean includes(Eligible event, Eligible[] channels)
      Matches the given event and channels against the criteria for events and channels of this handler scope.
      Parameters:
      event - the event
      channels - the channels
      Returns:
      true, if successful