Interface ApplicationEventListener<E>

  • Type Parameters:
    E - An event
    All Superinterfaces:
    java.util.EventListener
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Indexed(ApplicationEventListener.class)
    @FunctionalInterface
    public interface ApplicationEventListener<E>
    extends java.util.EventListener
    An interface for receivers of application events.
    Since:
    1.0
    • Method Detail

      • onApplicationEvent

        void onApplicationEvent​(E event)
        Handle an application event.
        Parameters:
        event - the event to respond to
      • supports

        default boolean supports​(E event)
        Whether the given event is supported.
        Parameters:
        event - The event
        Returns:
        True if it is