@Singleton public class ScheduledMethodProcessor extends Object implements ExecutableMethodProcessor<Scheduled>, Closeable
ExecutableMethodProcessor
for the Scheduled
annotation.Constructor and Description |
---|
ScheduledMethodProcessor(BeanContext beanContext,
Optional<ConversionService<?>> conversionService,
TaskExceptionHandler<?,?> taskExceptionHandler) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
process(BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
The process method will be called for every
ExecutableMethod that is annotated with the type parameter A. |
public ScheduledMethodProcessor(BeanContext beanContext, Optional<ConversionService<?>> conversionService, TaskExceptionHandler<?,?> taskExceptionHandler)
beanContext
- The bean context for DI of beans annotated with Inject
conversionService
- To convert one type to anothertaskExceptionHandler
- The default task exception handlerpublic void process(BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
ExecutableMethodProcessor
ExecutableMethod
that is annotated with the type parameter A.process
in interface AnnotationProcessor<Scheduled,ExecutableMethod<?,?>>
process
in interface ExecutableMethodProcessor<Scheduled>
beanDefinition
- The bean definition to processmethod
- The executable methodpublic void close()
close
in interface Closeable
close
in interface AutoCloseable