org.omnaest.utils.events
Class EventListenerBasic<EVENT,RESULT>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventListenerBasic
public EventListenerBasic()
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.