org.omnaest.utils.events
Class EventListenerBasic<EVENT,RESULT>

java.lang.Object
  extended by org.omnaest.utils.events.EventListenerBasic<EVENT,RESULT>
All Implemented Interfaces:
Serializable, EventListener<EVENT,RESULT>

public abstract class EventListenerBasic<EVENT,RESULT>
extends Object
implements EventListener<EVENT,RESULT>

Simple abstract implementation of a EventListener which offers several overwritable methods to handle the event.

Author:
Omnaest
See Also:
Serialized Form

Constructor Summary
EventListenerBasic()
           
 
Method Summary
 List<RESULT> handleEvent(EVENT parameter)
          This method will be called from an EventManager when events are being fired.
 void handleEventSilently(EVENT parameter)
           
 void handleEventSilently(EVENT parameter, EventListenerRegistration<EVENT,RESULT> listenerRegistration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventListenerBasic

public EventListenerBasic()
Method Detail

handleEventSilently

public void handleEventSilently(EVENT parameter)
Parameters:
parameter -

handleEventSilently

public void handleEventSilently(EVENT parameter,
                                EventListenerRegistration<EVENT,RESULT> listenerRegistration)
Parameters:
parameter -
listenerRegistration -

handleEvent

public List<RESULT> handleEvent(EVENT parameter)
Description copied from interface: EventListener
This method will be called from an EventManager when events are being fired.

Specified by:
handleEvent in interface EventListener<EVENT,RESULT>
Returns:
map


Copyright © 2013. All Rights Reserved.