annotation, instance, owner| Constructor and Description |
|---|
RunnableHandler(java.lang.Class<?> owner,
java.lang.Object instance,
EventHandler annotation,
java.lang.Runnable runnable) |
| Modifier and Type | Method and Description |
|---|---|
void |
call(java.lang.Object event)
Call the event handler with the given event instance.
|
java.lang.Runnable |
getRunnable() |
java.lang.String |
toString() |
getAnnotation, getInstance, getOwner, isStaticpublic RunnableHandler(java.lang.Class<?> owner,
@Nullable
java.lang.Object instance,
EventHandler annotation,
java.lang.Runnable runnable)
owner - The owner of the handler methodinstance - The instance of the handler ownerannotation - The EventHandler annotation of the handler methodrunnable - The handler runnable@Nonnull public java.lang.Runnable getRunnable()
public void call(java.lang.Object event)
AHandler