public class

SchedulerAccessorBean

extends SchedulerAccessor
implements BeanFactoryAware InitializingBean
java.lang.Object
   ↳ org.springframework.scheduling.quartz.SchedulerAccessor
     ↳ org.springframework.scheduling.quartz.SchedulerAccessorBean

Class Overview

Spring bean-style class for accessing a Quartz Scheduler, i.e. for registering jobs, triggers and listeners on a given org.quartz.Scheduler instance.

Summary

[Expand]
Inherited Fields
From class org.springframework.scheduling.quartz.SchedulerAccessor
Public Constructors
SchedulerAccessorBean()
Public Methods
void afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
Scheduler getScheduler()
Return the Quartz Scheduler instance that this accessor operates on.
void setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance.
void setScheduler(Scheduler scheduler)
Specify the Quartz Scheduler instance to operate on.
void setSchedulerName(String schedulerName)
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
Scheduler findScheduler(String schedulerName)
[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

Public Constructors

public SchedulerAccessorBean ()

Public Methods

public void afterPropertiesSet ()

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.

Throws
SchedulerException

public Scheduler getScheduler ()

Return the Quartz Scheduler instance that this accessor operates on.

public void setBeanFactory (BeanFactory beanFactory)

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.

Parameters
beanFactory owning BeanFactory (never null). The bean can immediately call methods on the factory.

public void setScheduler (Scheduler scheduler)

Specify the Quartz Scheduler instance to operate on.

public void setSchedulerName (String schedulerName)

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.

Protected Methods

protected Scheduler findScheduler (String schedulerName)

Throws
SchedulerException