java.lang.Object | |
↳ | org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor |
Bean post-processor that registers methods annotated with @Scheduled
to be invoked by a TaskScheduler
according
to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.core.Ordered
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory on destruction of a singleton.
| |||||||||||
Return the order value of this object, with a
higher value meaning greater in terms of sorting.
| |||||||||||
Apply this BeanPostProcessor to the given new bean instance after any bean
initialization callbacks (like InitializingBean's
afterPropertiesSet
or a custom init-method). | |||||||||||
Apply this BeanPostProcessor to the given new bean instance before any bean
initialization callbacks (like InitializingBean's
afterPropertiesSet
or a custom init-method). | |||||||||||
Set the ApplicationContext that this object runs in.
| |||||||||||
Set the StringValueResolver to use for resolving embedded definition values.
| |||||||||||
Set the
TaskScheduler that will invoke
the scheduled methods, or a java.util.concurrent.ScheduledExecutorService
to be wrapped as a TaskScheduler. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.DisposableBean
| |||||||||||
From interface
org.springframework.beans.factory.config.BeanPostProcessor
| |||||||||||
From interface
org.springframework.context.ApplicationContextAware
| |||||||||||
From interface
org.springframework.context.ApplicationListener
| |||||||||||
From interface
org.springframework.context.EmbeddedValueResolverAware
| |||||||||||
From interface
org.springframework.core.Ordered
|
Return the order value of this object, with a higher value meaning greater in terms of sorting.
Normally starting with 0, with Integer.MAX_VALUE
indicating the greatest value. Same order values will result
in arbitrary positions for the affected objects.
Higher values can be interpreted as lower priority. As a consequence, the object with the lowest value has highest priority (somewhat analogous to Servlet "load-on-startup" values).
Apply this BeanPostProcessor to the given new bean instance after any bean
initialization callbacks (like InitializingBean's afterPropertiesSet
or a custom init-method). The bean will already be populated with property values.
The returned bean instance may be a wrapper around the original.
In case of a FactoryBean, this callback will be invoked for both the FactoryBean
instance and the objects created by the FactoryBean (as of Spring 2.0). The
post-processor can decide whether to apply to either the FactoryBean or created
objects or both through corresponding bean instanceof FactoryBean
checks.
This callback will also be invoked after a short-circuiting triggered by a
postProcessBeforeInstantiation(Class>, String)
method,
in contrast to all other BeanPostProcessor callbacks.
bean | the new bean instance |
---|---|
beanName | the name of the bean |
null
, no subsequent BeanPostProcessors will be invokedApply this BeanPostProcessor to the given new bean instance before any bean
initialization callbacks (like InitializingBean's afterPropertiesSet
or a custom init-method). The bean will already be populated with property values.
The returned bean instance may be a wrapper around the original.
bean | the new bean instance |
---|---|
beanName | the name of the bean |
null
, no subsequent BeanPostProcessors will be invokedSet the ApplicationContext that this object runs in. Normally this call will be used to initialize the object.
Invoked after population of normal bean properties but before an init callback such
as afterPropertiesSet()
or a custom init-method. Invoked after setResourceLoader(ResourceLoader)
,
setApplicationEventPublisher(ApplicationEventPublisher)
and
MessageSourceAware
, if applicable.
applicationContext | the ApplicationContext object to be used by this object |
---|
Set the StringValueResolver to use for resolving embedded definition values.
Set the TaskScheduler
that will invoke
the scheduled methods, or a java.util.concurrent.ScheduledExecutorService
to be wrapped as a TaskScheduler.