L - the listener typepublic class DefaultMethodScanner<L> extends java.lang.Object implements MethodScanner<L>
MethodScanner using the built-in
Subscribe, IgnoreCancelled and PostOrder annotations.| Modifier | Constructor and Description |
|---|---|
protected |
DefaultMethodScanner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
consumeCancelledEvents(L listener,
@NonNull java.lang.reflect.Method method)
Gets if cancelled events should be posted to the resultant subscriber.
|
static <L> @NonNull MethodScanner<L> |
get() |
int |
postOrder(L listener,
@NonNull java.lang.reflect.Method method)
Gets the post order the resultant subscriber should be called at.
|
boolean |
shouldRegister(L listener,
@NonNull java.lang.reflect.Method method)
Gets if the factory should generate a subscriber for this method.
|
public static <L> @NonNull MethodScanner<L> get()
public boolean shouldRegister(L listener, @NonNull java.lang.reflect.Method method)
MethodScannershouldRegister in interface MethodScanner<L>listener - the listener being scannedmethod - the method declaration being consideredpublic int postOrder(L listener, @NonNull java.lang.reflect.Method method)
MethodScannerpostOrder in interface MethodScanner<L>listener - the listenermethod - the methodPostOrderspublic boolean consumeCancelledEvents(L listener, @NonNull java.lang.reflect.Method method)
MethodScannerconsumeCancelledEvents in interface MethodScanner<L>listener - the listenermethod - the method