info.magnolia.event
Class EventHandlerCollection<H extends EventHandler>

java.lang.Object
  extended by 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.


Constructor Summary
EventHandlerCollection()
           
 
Method Summary
 HandlerRegistration add(H handler)
           
 void dispatch(Event<H> event)
           
 boolean isEmpty()
           
 void remove(H handler)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventHandlerCollection

public EventHandlerCollection()
Method Detail

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.