info.magnolia.event
Class EventHandlerCollection<H extends EventHandler>
java.lang.Object
info.magnolia.event.EventHandlerCollection<H>
- Type Parameters:
H
- type of the event handler
public class EventHandlerCollection<H extends EventHandler>
- extends Object
Simple thread safe collection of handlers for a specific event.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventHandlerCollection
public EventHandlerCollection()
add
public HandlerRegistration add(H handler)
remove
public void remove(H handler)
dispatch
public void dispatch(Event<H> event)
size
public int size()
isEmpty
public boolean isEmpty()
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.