Class EventRegistry


  • public abstract class EventRegistry
    extends Object
    An event registry instance is used by applications to register or unregister event listeners for a particular source of events.
    Since:
    3.1
    • Method Detail

      • getEventRegistry

        public static EventRegistry getEventRegistry​(EventSource source)
        Retrieves the event registry for the specified source of events or return null if source is unknown or no registry exists for this source.
        Parameters:
        source - the source of events
        Returns:
        the EventRegistry instance for the specified source of events
      • register

        public void register​(EventListener listener)
        Register an event listener for this source of events.
        Parameters:
        listener - the event listener to register
      • unregister

        public void unregister​(EventListener listener)
        Unregister the specified event listener.
        Parameters:
        listener - the event listener to unregister