Annotation Type EventHandler


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    public @interface EventHandler
    Marks a method as an event handler. If the containing class object is registered on the event bus, the method will receive events of the type of its required single parameter.

    Set the side parameter to only receive events when sherlock is running as a server or a client
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Side side
      Is SherlockEngine running locally (Side.CLIENT) or on a server (Side.SERVER)
    • Element Detail

      • side

        Side side
        Is SherlockEngine running locally (Side.CLIENT) or on a server (Side.SERVER)
        Returns:
        side
        Default:
        uk.ac.warwick.dcs.sherlock.api.util.Side.UNKNOWN