Interface Listener

All Known Implementing Classes:
ApplicationStartedListener, ApplicationStoppingListener, NotificationListener

public interface Listener
A marker interface which marks an object as an event handler. Methods marked with the EventHandler annotation will be treated as event handler methods.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Searches through all declared methods of this event listener, collects all valid event handlers, then returns the collection of references to the event handlers.
  • Method Details

    • getHandlerReferences

      @Nonnull default Collection<HandlerReference> getHandlerReferences()
      Searches through all declared methods of this event listener, collects all valid event handlers, then returns the collection of references to the event handlers.

      Modify this method at your own risk.

      Returns:
      A collection containing references to every valid handler method of this class