java.lang.Object | ||
↳ | org.springframework.scheduling.quartz.SchedulerAccessor | |
↳ | org.springframework.scheduling.quartz.SchedulerAccessorBean |
Spring bean-style class for accessing a Quartz Scheduler, i.e. for registering jobs, triggers and listeners on a given org.quartz.Scheduler instance.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.scheduling.quartz.SchedulerAccessor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
| |||||||||||
Return the Quartz Scheduler instance that this accessor operates on.
| |||||||||||
Callback that supplies the owning factory to a bean instance.
| |||||||||||
Specify the Quartz Scheduler instance to operate on.
| |||||||||||
Specify the Quartz Scheduler to operate on via its scheduler name in the Spring
application context or also in the Quartz org.quartz.impl.SchedulerRepository.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.scheduling.quartz.SchedulerAccessor
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanFactoryAware
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.context.ResourceLoaderAware
|
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
SchedulerException |
---|
Return the Quartz Scheduler instance that this accessor operates on.
Callback that supplies the owning factory to a bean instance.
Invoked after the population of normal bean properties
but before an initialization callback such as
afterPropertiesSet()
or a custom init-method.
beanFactory | owning BeanFactory (never null ).
The bean can immediately call methods on the factory. |
---|
Specify the Quartz Scheduler instance to operate on.
Specify the Quartz Scheduler to operate on via its scheduler name in the Spring application context or also in the Quartz org.quartz.impl.SchedulerRepository.
Schedulers can be registered in the repository through custom bootstrapping,
e.g. via the org.quartz.impl.StdSchedulerFactory or
org.quartz.impl.DirectSchedulerFactory factory classes.
However, in general, it's preferable to use Spring's SchedulerFactoryBean
which includes the job/trigger/listener capabilities of this accessor as well.