|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.util.EventHandler.ListenerHandler
protected class EventHandler.ListenerHandler
Generic Listener that calls reflective the given method.
The Method is searched in the order:
1) public void methodName(E pEvent);
2) public void methodName();
If the method does not exist, a NoSuchMethodException is thrown.
| Constructor Summary | |
|---|---|
EventHandler.ListenerHandler(L pListenerInterface)
Constructs a new ListenerHandler with an listener interface. |
|
EventHandler.ListenerHandler(Object pListener,
String pMethodName)
Constructs a new ListenerHandler with a proxy listener interface. |
|
| Method Summary | |
|---|---|
Object |
dispatchEvent(Object... pArguments)
Invokes the listener or the proxy interface. |
boolean |
equals(Object pObject)
|
int |
hashCode()
|
Object |
invoke(Object pProxy,
Method pMethod,
Object[] pArguments)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventHandler.ListenerHandler(L pListenerInterface)
pListenerInterface - the listener interface.
public EventHandler.ListenerHandler(Object pListener,
String pMethodName)
pListener - the listener.pMethodName - the method name.| Method Detail |
|---|
public Object invoke(Object pProxy,
Method pMethod,
Object[] pArguments)
throws Throwable
invoke in interface InvocationHandlerThrowablepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object pObject)
equals in class Objectpublic String toString()
toString in class Object
public Object dispatchEvent(Object... pArguments)
throws Throwable
pArguments - the Arguments.
Throwable - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||