E - the event typeL - the listener type@FunctionalInterface
public static interface EventExecutor.Factory<E,L>
EventExecutors.| 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.
|
@NonNull EventExecutor<E,L> create(@NonNull java.lang.Object object, @NonNull java.lang.reflect.Method method) throws java.lang.Exception
object - the listener objectmethod - the method to call on the objectjava.lang.Exception - if an exception occurred while creating an executor