Class SchedulerDecoratorHandler<A extends Annotation>
java.lang.Object
com.thewinterframework.service.decorator.scheduler.SchedulerDecoratorHandler<A>
- All Implemented Interfaces:
ServiceDecoratorHandler<A>
- Direct Known Subclasses:
RepeatingTaskDecoratorHandler,ScheduledAtDecoratorHandler
public abstract class SchedulerDecoratorHandler<A extends Annotation>
extends Object
implements ServiceDecoratorHandler<A>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SchedulerMethodmap(Class<?> service, A annotation, AnnotatedMethodHandle<A> method) voidonDiscover(Class<?> service, AnnotatedMethodHandle<A> method) Called when a method with the decorator annotation is discovered.voidonPluginEnable(WinterPlugin plugin) Called when a plugin is enabled.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thewinterframework.service.decorator.ServiceDecoratorHandler
getAnnotationType, onConfigure, onDiscoverOnType, onPluginDisable, onPluginLoad
-
Constructor Details
-
SchedulerDecoratorHandler
public SchedulerDecoratorHandler()
-
-
Method Details
-
onDiscover
Description copied from interface:ServiceDecoratorHandlerCalled when a method with the decorator annotation is discovered.- Specified by:
onDiscoverin interfaceServiceDecoratorHandler<A extends Annotation>- Parameters:
service- The class containing the annotated method.method- The annotated method handle.
-
map
protected abstract SchedulerMethod map(Class<?> service, A annotation, AnnotatedMethodHandle<A> method) -
onPluginEnable
Description copied from interface:ServiceDecoratorHandlerCalled when a plugin is enabled.- Specified by:
onPluginEnablein interfaceServiceDecoratorHandler<A extends Annotation>- Parameters:
plugin- The plugin being enabled.
-