public interface EventSourceEvents
EventSource
Modifier and Type | Method and Description |
---|---|
void |
listenerCountChanged(EventSource es,
int oldCount,
int newCount)
This number of listeners has changed as a result of an addListener or
removeListener method being called.
|
void |
listenerExceptionThrown(EventSource es,
java.lang.Object listener,
java.lang.String methodName,
java.lang.Throwable exception)
A registered listener method threw an exception whilst handling an event.
|
void |
unexpectedException(EventSource es,
java.lang.Object runnable,
java.lang.Throwable exception)
An unexpected exception was detected in the runtime.
|
void listenerCountChanged(EventSource es, int oldCount, int newCount)
es
- The EventSource in question.oldCount
- The listener count before this operation.newCount
- The listener count after the operation.void listenerExceptionThrown(EventSource es, java.lang.Object listener, java.lang.String methodName, java.lang.Throwable exception)
es
- The EventSource in question.listener
- The listener which failed.methodName
- The name of the method being called.exception
- The exception thrown by the listener.void unexpectedException(EventSource es, java.lang.Object runnable, java.lang.Throwable exception)
es
- The EventSource in question.runnable
- The object which threw the exception.exception
- The thrown exception.