Class ScheduledMethodProcessor
java.lang.Object
io.micronaut.scheduling.processor.ScheduledMethodProcessor
- All Implemented Interfaces:
AnnotationProcessor<Scheduled,
,ExecutableMethod<?, ?>> ExecutableMethodProcessor<Scheduled>
,Closeable
,AutoCloseable
@Singleton
public class ScheduledMethodProcessor
extends Object
implements ExecutableMethodProcessor<Scheduled>, Closeable
A
ExecutableMethodProcessor
for the Scheduled
annotation.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionScheduledMethodProcessor
(BeanContext beanContext, Optional<ConversionService> conversionService, TaskExceptionHandler<?, ?> taskExceptionHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
process
(BeanDefinition<?> beanDefinition, ExecutableMethod<?, ?> method) The process method will be called for everyExecutableMethod
that is annotated with the type parameter A.
-
Constructor Details
-
ScheduledMethodProcessor
public ScheduledMethodProcessor(BeanContext beanContext, Optional<ConversionService> conversionService, TaskExceptionHandler<?, ?> taskExceptionHandler) - Parameters:
beanContext
- The bean context for DI of beans annotated with @InjectconversionService
- To convert one type to anothertaskExceptionHandler
- The default task exception handler
-
-
Method Details
-
process
Description copied from interface:ExecutableMethodProcessor
The process method will be called for everyExecutableMethod
that is annotated with the type parameter A.- Specified by:
process
in interfaceAnnotationProcessor<Scheduled,
ExecutableMethod<?, ?>> - Specified by:
process
in interfaceExecutableMethodProcessor<Scheduled>
- Parameters:
beanDefinition
- The bean definition to processmethod
- The executable method
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-