|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apama.event.EventListenerAdapter
public abstract class EventListenerAdapter
EventListenerAdapter is a class that provides a skeletal implementation of the IEventListener interface to minimize effort required to implement the interface.
This class provides a simple no-op implementation of the handleEvent(Event) method, and an implementation of the handleEvents(Event[]) method that calls the single handleEvent(Event) method for each event in the array.
To provide a concrete implementation, the programmer needs only to extend this class to provide an implementation of the handleEvent(Event) method, and optionally also the handleEvents(Event[]) method.
Constructor Summary | |
---|---|
EventListenerAdapter()
|
Method Summary | |
---|---|
void |
handleEvent(Event event)
Simple no-op implementation of the interface method. |
void |
handleEvents(Event[] events)
Simple implementation of the interface method that calls handleEvent(Event) for each item in the array. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventListenerAdapter()
Method Detail |
---|
public void handleEvent(Event event)
handleEvent
in interface IEventListener
event
- The received Event.IEventListener.handleEvent(com.apama.event.Event)
public void handleEvents(Event[] events)
handleEvents
in interface IEventListener
events
- The received array of Events.IEventListener.handleEvents(com.apama.event.Event[])
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |