Interface ListenerInvoker

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ListenerInvoker
    Responsible for invoking event listener methods without reflection. An implementation is automatically generated for every event listener method when registered.
    • Method Detail

      • invoke

        void invoke​(Event event)
        Invokes the event listener method.
        Parameters:
        event - The event the listener method should be invoked with. Passing an event with the wrong type will result in an exception