org.springframework.scheduling.annotation

Class ScheduledAnnotationBeanPostProcessor

  • java.lang.Object
    • org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor
    • Field Detail

      • DEFAULT_TASK_SCHEDULER_BEAN_NAME

        public static final java.lang.String DEFAULT_TASK_SCHEDULER_BEAN_NAME
        The default name of the TaskScheduler bean to pick up: "taskScheduler".

        Note that the initial lookup happens by type; this is just the fallback in case of multiple scheduler beans found in the context.

        Since:
        4.2
        See Also:
        Constant Field Values
      • logger

        protected final Log logger
    • Constructor Detail

      • ScheduledAnnotationBeanPostProcessor

        public ScheduledAnnotationBeanPostProcessor()
        Create a default ScheduledAnnotationBeanPostProcessor.
      • ScheduledAnnotationBeanPostProcessor

        public ScheduledAnnotationBeanPostProcessor(ScheduledTaskRegistrar registrar)
        Create a ScheduledAnnotationBeanPostProcessor delegating to the specified ScheduledTaskRegistrar.
        Parameters:
        registrar - the ScheduledTaskRegistrar to register @Scheduled tasks on
        Since:
        5.1