Interface MethodAnnotationScanner
- All Superinterfaces:
PluginAnnotationScanner<MethodAnnotationScanner.Result>,PluginAware
public interface MethodAnnotationScanner
extends PluginAnnotationScanner<MethodAnnotationScanner.Result>, PluginAware
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMethodAnnotationScanner.Context<A extends Annotation>static interfaceMethodAnnotationScanner.Key<I extends Annotation,O> static interfacestatic interfaceMethodAnnotationScanner.Processor<I extends Annotation,O> static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MethodAnnotationScanner.Key<EventHandler,EventSubscription> static final MethodAnnotationScanner.Key<TaskHandler,Cancellable> static final MethodAnnotationScanner.KeyWithProcessor<TaskHandler,Cancellable> -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodAnnotationScannercreate(MindustryPlugin plugin) default <I extends Annotation,O>
MethodAnnotationScannerregister(MethodAnnotationScanner.Key<I, O> key, MethodAnnotationScanner.Processor<I, O> processor) <I extends Annotation,O>
MethodAnnotationScannerregister(MethodAnnotationScanner.KeyWithProcessor<I, O> pair) Methods inherited from interface com.xpdustry.distributor.annotation.PluginAnnotationScanner
scanMethods inherited from interface com.xpdustry.distributor.plugin.PluginAware
getPlugin
-
Field Details
-
TASK_HANDLER_KEY
-
EVENT_HANDLER_KEY
-
TASK_HANDLER_PAIR
-
EVENT_HANDLER_PAIR
static final MethodAnnotationScanner.KeyWithProcessor<EventHandler,EventSubscription> EVENT_HANDLER_PAIR
-
-
Method Details
-
create
-
register
default <I extends Annotation,O> MethodAnnotationScanner register(MethodAnnotationScanner.Key<I, O> key, MethodAnnotationScanner.Processor<I, O> processor) -
register
<I extends Annotation,O> MethodAnnotationScanner register(MethodAnnotationScanner.KeyWithProcessor<I, O> pair)
-