Class SchedulerAnnotationListener
java.lang.Object
dev.voidframework.scheduler.module.SchedulerAnnotationListener
- All Implemented Interfaces:
com.google.inject.spi.TypeListener
public class SchedulerAnnotationListener
extends Object
implements com.google.inject.spi.TypeListener
Listens to the different bind classes to detect which ones have scheduled methods.
-
Constructor Summary
ConstructorsConstructorDescriptionSchedulerAnnotationListener(ScheduledHandlers scheduledHandlers) Build a new instance. -
Method Summary
Modifier and TypeMethodDescription<I> voidhear(com.google.inject.TypeLiteral<I> type, com.google.inject.spi.TypeEncounter<I> encounter)
-
Constructor Details
-
SchedulerAnnotationListener
Build a new instance.- Parameters:
scheduledHandlers- The scheduled hooks
-
-
Method Details
-
hear
public <I> void hear(com.google.inject.TypeLiteral<I> type, com.google.inject.spi.TypeEncounter<I> encounter) - Specified by:
hearin interfacecom.google.inject.spi.TypeListener
-