public class MethodEventHandler extends EventHandler
Method
to dispatch an event.EventHandler.Priority
Constructor and Description |
---|
MethodEventHandler(EventHandler.Priority priority,
java.lang.Object object,
java.lang.reflect.Method method)
Create a new event handler.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(java.lang.Object event)
Dispatch the event.
|
boolean |
equals(java.lang.Object o) |
java.lang.reflect.Method |
getMethod()
Get the method.
|
int |
hashCode() |
compareTo, getPriority, handleEvent, toString
public MethodEventHandler(EventHandler.Priority priority, java.lang.Object object, java.lang.reflect.Method method)
priority
- the prioritymethod
- the methodpublic java.lang.reflect.Method getMethod()
public void dispatch(java.lang.Object event) throws java.lang.Exception
EventHandler
dispatch
in class EventHandler
event
- the event objectjava.lang.Exception
- an exception that may be thrownpublic boolean equals(java.lang.Object o)
equals
in class EventHandler
public int hashCode()
hashCode
in class EventHandler