public class MethodEventHandler extends EventHandler
Method to dispatch an event.EventHandler.Priority| Constructor and Description |
|---|
MethodEventHandler(EventHandler.Priority priority,
Object object,
Method method)
Create a new event handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(Object event)
Dispatch the event.
|
boolean |
equals(Object o) |
Method |
getMethod()
Get the method.
|
int |
hashCode() |
compareTo, getPriority, handleEvent, toStringpublic MethodEventHandler(EventHandler.Priority priority, Object object, Method method)
priority - the prioritymethod - the methodpublic Method getMethod()
public void dispatch(Object event) throws Exception
EventHandlerdispatch in class EventHandlerevent - the event objectException - an exception that may be thrownpublic boolean equals(Object o)
equals in class EventHandlerpublic int hashCode()
hashCode in class EventHandlerCopyright © 2010-2014. All Rights Reserved.