|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.griffon.runtime.tasks.EventEmitter
public class EventEmitter extends Object
| Nested Class Summary | |
|---|---|
protected class |
EventEmitter.EventInvocationHandler
|
| Field Summary | |
|---|---|
private Object |
emitter
|
private ExceptionHandler |
exceptionHandler
|
private Class |
listenerClass
|
private CopyOnWriteArrayList |
listeners
|
private static org.slf4j.Logger |
log
|
| Constructor Summary | |
EventEmitter(Class clazz, ClassLoader loader, ExceptionHandler handler)
|
|
| Method Summary | |
|---|---|
void
|
addListener(Object listener)
|
protected InvocationHandler
|
createInvocationHandler()
|
Object
|
emitter()
|
int
|
getListenerCount()
|
Object[]
|
getListeners()
|
boolean
|
isEmpty()
|
Iterator
|
iterator()
|
static EventEmitter
|
newEmitter(Class listenerClass)
|
static EventEmitter
|
newEmitter(Class listenerClass, ClassLoader loader)
|
static EventEmitter
|
newEmitter(Class listenerClass, ExceptionHandler handler)
|
static EventEmitter
|
newEmitter(Class listenerClass, ClassLoader loader, ExceptionHandler handler)
|
void
|
removeListener(Object listener)
|
void
|
setExceptionHandler(ExceptionHandler exceptionHandler)
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private final Object emitter
private ExceptionHandler exceptionHandler
private final Class listenerClass
private final CopyOnWriteArrayList listeners
private static final org.slf4j.Logger log
| Constructor Detail |
|---|
public EventEmitter(Classclazz, ClassLoader loader, ExceptionHandler handler) { public EventEmitter(Class clazz, ClassLoader loader, ExceptionHandler handler)
| Method Detail |
|---|
public void addListener(Object listener)
protected InvocationHandler createInvocationHandler()
public Object emitter()
public int getListenerCount()
public T[] getListeners() {
public Object[] getListeners()
public boolean isEmpty()
public Iterator iterator()
public static EventEmitter newEmitter(Class listenerClass)
public static EventEmitter newEmitter(Class listenerClass, ClassLoader loader)
public static EventEmitter newEmitter(Class listenerClass, ExceptionHandler handler)
public static EventEmitter newEmitter(Class listenerClass, ClassLoader loader, ExceptionHandler handler)
public void removeListener(Object listener)
public void setExceptionHandler(ExceptionHandler exceptionHandler)
Groovy Documentation