public class ContextLifecycleScheduledTaskRegistrar extends ScheduledTaskRegistrar implements SmartInitializingSingleton
ScheduledTaskRegistrar
subclass which redirects the actual scheduling
of tasks to the afterSingletonsInstantiated()
callback (as of 4.1.2).CRON_DISABLED
Constructor and Description |
---|
ContextLifecycleScheduledTaskRegistrar() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Calls
ScheduledTaskRegistrar.scheduleTasks() at bean construction time. |
void |
afterSingletonsInstantiated()
Invoked right at the end of the singleton pre-instantiation phase,
with a guarantee that all regular singleton beans have been created
already.
|
addCronTask, addCronTask, addFixedDelayTask, addFixedDelayTask, addFixedRateTask, addFixedRateTask, addTriggerTask, addTriggerTask, destroy, getCronTaskList, getFixedDelayTaskList, getFixedRateTaskList, getScheduledTasks, getScheduler, getTriggerTaskList, hasTasks, scheduleCronTask, scheduleFixedDelayTask, scheduleFixedDelayTask, scheduleFixedRateTask, scheduleFixedRateTask, scheduleTasks, scheduleTriggerTask, setCronTasks, setCronTasksList, setFixedDelayTasks, setFixedDelayTasksList, setFixedRateTasks, setFixedRateTasksList, setScheduler, setTaskScheduler, setTriggerTasks, setTriggerTasksList
public ContextLifecycleScheduledTaskRegistrar()
public void afterPropertiesSet()
ScheduledTaskRegistrar
ScheduledTaskRegistrar.scheduleTasks()
at bean construction time.afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class ScheduledTaskRegistrar
public void afterSingletonsInstantiated()
SmartInitializingSingleton
ListableBeanFactory.getBeansOfType(java.lang.Class<T>)
calls within
this method won't trigger accidental side effects during bootstrap.
NOTE: This callback won't be triggered for singleton beans
lazily initialized on demand after BeanFactory
bootstrap,
and not for any other bean scope either. Carefully use it for beans
with the intended bootstrap semantics only.
afterSingletonsInstantiated
in interface SmartInitializingSingleton