com.apama.event
Class EventListenerAdapter

java.lang.Object
  extended by com.apama.event.EventListenerAdapter
All Implemented Interfaces:
IEventListener

public abstract class EventListenerAdapter
extends java.lang.Object
implements IEventListener

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

EventListenerAdapter

public EventListenerAdapter()
Method Detail

handleEvent

public void handleEvent(Event event)
Simple no-op implementation of the interface method.

Specified by:
handleEvent in interface IEventListener
Parameters:
event - The received Event.
See Also:
IEventListener.handleEvent(com.apama.event.Event)

handleEvents

public void handleEvents(Event[] events)
Simple implementation of the interface method that calls handleEvent(Event) for each item in the array.

Specified by:
handleEvents in interface IEventListener
Parameters:
events - The received array of Events.
See Also:
IEventListener.handleEvents(com.apama.event.Event[])


Submit a bug or feature
Copyright (c) 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG