public class ListenerHandler extends java.lang.Object implements IDedicatedListener
Listener.| Constructor and Description |
|---|
ListenerHandler(java.lang.Object instance,
java.lang.reflect.Method method) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getHandles()
Gets the type that this 'dedicated listener' listens for.
|
java.lang.Object |
getInstance()
Gets the instantiated class of which holds the method that needs to be invoked.
|
java.lang.reflect.Method |
getMethod()
Gets the method of which needs to be invoked.
|
void |
process(java.lang.Object event)
Invokes the given method, with the given instance.
|
public ListenerHandler(java.lang.Object instance,
java.lang.reflect.Method method)
public java.lang.Object getInstance()
public java.lang.reflect.Method getMethod()
public void process(java.lang.Object event)
process in interface IDedicatedListenerevent - the event to use while invoking.public java.lang.Class getHandles()
getHandles in interface IDedicatedListener