Class AnnotatedEventManager

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Object> getRegisteredListeners()
      The currently registered listeners
      void handle​(GenericEvent event)
      Handles the provided GenericEvent.
      void register​(java.lang.Object listener)
      Registers the specified listener
      Accepted types may be specified by implementations
      void unregister​(java.lang.Object listener)
      Removes the specified listener
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotatedEventManager

        public AnnotatedEventManager()
    • Method Detail

      • register

        public void register​(@Nonnull
                             java.lang.Object listener)
        Description copied from interface: IEventManager
        Registers the specified listener
        Accepted types may be specified by implementations
        Specified by:
        register in interface IEventManager
        Parameters:
        listener - A listener object
      • unregister

        public void unregister​(@Nonnull
                               java.lang.Object listener)
        Description copied from interface: IEventManager
        Removes the specified listener
        Specified by:
        unregister in interface IEventManager
        Parameters:
        listener - The listener object to remove
      • getRegisteredListeners

        @Nonnull
        public java.util.List<java.lang.Object> getRegisteredListeners()
        Description copied from interface: IEventManager
        The currently registered listeners
        Specified by:
        getRegisteredListeners in interface IEventManager
        Returns:
        A list of listeners that have already been registered
      • handle

        public void handle​(@Nonnull
                           GenericEvent event)
        Description copied from interface: IEventManager
        Handles the provided GenericEvent.
        How this is handled is specified by the implementation.

        An implementation should not throw exceptions.

        Specified by:
        handle in interface IEventManager
        Parameters:
        event - The event to handle