@Singleton public class ScheduledMethodProcessor extends java.lang.Object implements ExecutableMethodProcessor<Scheduled>, java.io.Closeable
ExecutableMethodProcessor
for the Scheduled
annotation.Constructor and Description |
---|
ScheduledMethodProcessor(BeanContext beanContext,
java.util.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, java.util.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 java.io.Closeable
close
in interface java.lang.AutoCloseable