Interface OnBeforeEvent


public interface OnBeforeEvent
Interface which, if present, will be invoked before entering request scope and can provide a set of objects to make available in the request scope, which will be consistent regardless of the page/acteur chain which eventually handles responding to the request (if any).

Binding an implementation of this interface is optional.

Author:
Tim Boudreau
  • Method Summary

    Modifier and Type
    Method
    Description
    onBeforeEvent(Event<?> event, io.netty.channel.Channel channel, Object internalId)
    Called before the event is processed to generate some additional objects for injection.
  • Method Details

    • onBeforeEvent

      Object[] onBeforeEvent(Event<?> event, io.netty.channel.Channel channel, Object internalId)
      Called before the event is processed to generate some additional objects for injection.
      Parameters:
      event - The event (usually HttpEvent).
      channel - The Netty Channel in use
      internalId - An internal ID object used by the framework, which must be included in the returned array.
      Returns:
      An array of objects for injection.