Top Description Fields Constructors Methods
org.springframework.scheduling.config

public Class ContextLifecycleScheduledTaskRegistrar

extends ScheduledTaskRegistrar
implements SmartInitializingSingleton
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.SmartInitializingSingleton
Imports
org.springframework.beans.factory.SmartInitializingSingleton

ScheduledTaskRegistrar subclass which redirects the actual scheduling of tasks to the afterSingletonsInstantiated() callback (as of 4.1.2).
Author
Juergen Hoeller
Since
3.2.1

Field Summary

Inherited from org.springframework.scheduling.config.ScheduledTaskRegistrar:
CRON_DISABLED

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
afterSingletonsInstantiated()

Implements org.springframework.beans.factory.SmartInitializingSingleton.afterSingletonsInstantiated.

Invoked right at the end of the singleton pre-instantiation phase, with a guarantee that all regular singleton beans have been created already.

Inherited from org.springframework.scheduling.config.ScheduledTaskRegistrar:
addCronTaskaddCronTaskaddFixedDelayTaskaddFixedDelayTaskaddFixedDelayTaskaddFixedRateTaskaddFixedRateTaskaddFixedRateTaskaddOneTimeTaskaddOneTimeTaskaddTriggerTaskaddTriggerTaskdestroygetCronTaskListgetFixedDelayTaskListgetFixedRateTaskListgetObservationRegistrygetScheduledTasksgetSchedulergetTriggerTaskListhasTasksscheduleCronTaskscheduleFixedDelayTaskscheduleFixedRateTaskscheduleOneTimeTaskscheduleTasksscheduleTriggerTasksetCronTaskssetCronTasksListsetFixedDelayTaskssetFixedDelayTasksListsetFixedRateTaskssetFixedRateTasksListsetObservationRegistrysetSchedulersetTaskSchedulersetTriggerTaskssetTriggerTasksList

Constructor Detail

ContextLifecycleScheduledTaskRegistrarback to summary
public ContextLifecycleScheduledTaskRegistrar()

Method Detail

afterPropertiesSetback to summary
public void afterPropertiesSet()

Overrides org.springframework.scheduling.config.ScheduledTaskRegistrar.afterPropertiesSet.

Implements org.springframework.beans.factory.InitializingBean.afterPropertiesSet.

Doc from org.springframework.scheduling.config.ScheduledTaskRegistrar.afterPropertiesSet.

Calls scheduleTasks() at bean construction time.

Annotations
@Override
afterSingletonsInstantiatedback to summary
public void afterSingletonsInstantiated()

Implements org.springframework.beans.factory.SmartInitializingSingleton.afterSingletonsInstantiated.

Doc from org.springframework.beans.factory.SmartInitializingSingleton.afterSingletonsInstantiated.

Invoked right at the end of the singleton pre-instantiation phase, with a guarantee that all regular singleton beans have been created already. ListableBeanFactory#getBeansOfType 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.

Annotations
@Override