T- the type of events this listener can process
public interface EventListener<T extends Event>
Definition of a generic event listener interface.
This event listener interface is used throughout the
Commons Configuration library for reacting on all kinds of supported
events. The interface is pretty minimalistic, defining only a single
onEvent() method. This simplifies the implementation of custom event
listeners and also supports the new language features introduced with Java 8
EventListener is a functional interface and thus can be represented
by a Lambda expression).
EventType. This event type acts as a filter; all events matched by the filter are passed to the listener. The type parameters defined by the
EventTypeclass and this interface guarantee that the events delivered to the handler are compatible with the concrete method signature of
event- the event
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.