Interface EventListener


public interface EventListener
Represents an interface that is used to indicate whether a class contains methods that listen for the calls of an Event
  • Method Summary

    Modifier and Type
    Method
    Description
    Iterates through all methods declared within this class, then returns a collection containing references to all valid event handlers within this class.
  • Method Details

    • getHandlerReferences

      @Nonnull default Collection<HandlerReference> getHandlerReferences()
      Iterates through all methods declared within this class, then returns a collection containing references to all valid event handlers within this class. Modify at your own risk.
      Returns:
      A collection of valid handler references within this class
      Since:
      1.1