org.kuali.rice.ksb.messaging.quartz
Class KSBSchedulerFactoryBean

java.lang.Object
  extended by org.springframework.scheduling.quartz.SchedulerAccessor
      extended by org.springframework.scheduling.quartz.SchedulerFactoryBean
          extended by org.kuali.rice.ksb.messaging.quartz.KSBSchedulerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.quartz.Scheduler>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.ResourceLoaderAware, org.springframework.context.SmartLifecycle

public class KSBSchedulerFactoryBean
extends org.springframework.scheduling.quartz.SchedulerFactoryBean

An implementation of the Quartz SchedulerFactoryBean which uses a database-backed quartz if the useQuartzDatabase property is set.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBean
DEFAULT_THREAD_COUNT, PROP_THREAD_COUNT
 
Fields inherited from class org.springframework.scheduling.quartz.SchedulerAccessor
logger, resourceLoader
 
Constructor Summary
KSBSchedulerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  org.quartz.Scheduler createScheduler(org.quartz.SchedulerFactory schedulerFactory, String schedulerName)
           
 void setDataSource(DataSource dataSource)
           
 void setNonTransactionalDataSource(DataSource nonTransactionalDataSource)
          This overridden method is used to keep track of whether the non transactional data source is null
 void setTransactionManager(org.springframework.transaction.PlatformTransactionManager jtaTransactionManager)
          This overridden method is used simply to keep track of whether the transactionManager property has been set
 
Methods inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBean
destroy, getConfigTimeDataSource, getConfigTimeNonTransactionalDataSource, getConfigTimeResourceLoader, getConfigTimeTaskExecutor, getObject, getObjectType, getPhase, getScheduler, isAutoStartup, isRunning, isSingleton, setApplicationContext, setApplicationContextSchedulerContextKey, setAutoStartup, setBeanName, setConfigLocation, setExposeSchedulerInRepository, setJobFactory, setPhase, setQuartzProperties, setSchedulerContextAsMap, setSchedulerFactoryClass, setSchedulerName, setStartupDelay, setTaskExecutor, setWaitForJobsToCompleteOnShutdown, start, startScheduler, stop, stop
 
Methods inherited from class org.springframework.scheduling.quartz.SchedulerAccessor
registerJobsAndTriggers, registerListeners, setCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobListeners, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTriggerListeners, setTriggers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KSBSchedulerFactoryBean

public KSBSchedulerFactoryBean()
Method Detail

createScheduler

protected org.quartz.Scheduler createScheduler(org.quartz.SchedulerFactory schedulerFactory,
                                               String schedulerName)
                                        throws org.quartz.SchedulerException
Overrides:
createScheduler in class org.springframework.scheduling.quartz.SchedulerFactoryBean
Throws:
org.quartz.SchedulerException

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.scheduling.quartz.SchedulerFactoryBean
Throws:
Exception

setTransactionManager

public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager jtaTransactionManager)
This overridden method is used simply to keep track of whether the transactionManager property has been set

Overrides:
setTransactionManager in class org.springframework.scheduling.quartz.SchedulerAccessor
See Also:
SchedulerAccessor.setTransactionManager(org.springframework.transaction.PlatformTransactionManager)

setNonTransactionalDataSource

public void setNonTransactionalDataSource(DataSource nonTransactionalDataSource)
This overridden method is used to keep track of whether the non transactional data source is null

Overrides:
setNonTransactionalDataSource in class org.springframework.scheduling.quartz.SchedulerFactoryBean
See Also:
SchedulerFactoryBean.setNonTransactionalDataSource(javax.sql.DataSource)

setDataSource

public void setDataSource(DataSource dataSource)
Overrides:
setDataSource in class org.springframework.scheduling.quartz.SchedulerFactoryBean


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.