E - the event typeL - the listener typepublic final class MethodHandleEventExecutorFactory<E,L> extends java.lang.Object implements EventExecutor.Factory<E,L>
MethodHandles to create event executors.| Constructor and Description |
|---|
MethodHandleEventExecutorFactory() |
| Modifier and Type | Method and Description |
|---|---|
@NonNull EventExecutor<E,L> |
create(@NonNull java.lang.Object object,
@NonNull java.lang.reflect.Method method)
Creates an event executor.
|
public @NonNull EventExecutor<E,L> create(@NonNull java.lang.Object object, @NonNull java.lang.reflect.Method method) throws java.lang.Exception
EventExecutor.Factorycreate in interface EventExecutor.Factory<E,L>object - the listener objectmethod - the method to call on the objectjava.lang.Exception - if an exception occurred while creating an executor