org.omnaest.utils.events.concrete
Class EventListenerRegistrationImpl<EVENT,RESULT>

java.lang.Object
  extended by org.omnaest.utils.events.concrete.EventListenerRegistrationImpl<EVENT,RESULT>
Type Parameters:
EVENT -
RESULT -
All Implemented Interfaces:
EventListenerRegistration<EVENT,RESULT>

public class EventListenerRegistrationImpl<EVENT,RESULT>
extends Object
implements EventListenerRegistration<EVENT,RESULT>

Registration for EventListener instances. Allows to add and remove EventListener instances. Intended for client use.

See Also:
EventManagerImpl

Field Summary
protected  List<EventListener<EVENT,RESULT>> listenerList
           
 
Constructor Summary
protected EventListenerRegistrationImpl(List<? extends EventListener<EVENT,RESULT>> listenerList)
           
 
Method Summary
 EventListenerRegistration<EVENT,RESULT> addEventListener(EventListener<EVENT,RESULT> listener)
          Adds a new EventListener to the handler.
 EventListenerRegistration<EVENT,RESULT> removeEventListener(EventListener<EVENT,RESULT> listener)
          Removes a given EventListener instance from the handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

protected List<EventListener<EVENT,RESULT>> listenerList
Constructor Detail

EventListenerRegistrationImpl

protected EventListenerRegistrationImpl(List<? extends EventListener<EVENT,RESULT>> listenerList)
Parameters:
listenerList -
Method Detail

addEventListener

public EventListenerRegistration<EVENT,RESULT> addEventListener(EventListener<EVENT,RESULT> listener)
Adds a new EventListener to the handler.

Specified by:
addEventListener in interface EventListenerRegistration<EVENT,RESULT>
Parameters:
listener -
Returns:
this

removeEventListener

public EventListenerRegistration<EVENT,RESULT> removeEventListener(EventListener<EVENT,RESULT> listener)
Removes a given EventListener instance from the handler.

Specified by:
removeEventListener in interface EventListenerRegistration<EVENT,RESULT>
Parameters:
listener -
Returns:
this


Copyright © 2013. All Rights Reserved.