org.jasig.cas.util
Class AutowiringSchedulerFactoryBean

java.lang.Object
  extended by org.springframework.scheduling.quartz.SchedulerAccessor
      extended by org.springframework.scheduling.quartz.SchedulerFactoryBean
          extended by org.jasig.cas.util.AutowiringSchedulerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.ResourceLoaderAware

public final class AutowiringSchedulerFactoryBean
extends org.springframework.scheduling.quartz.SchedulerFactoryBean
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean

Extension of SchedulerFactoryBean that collects trigger bean definitions from the application context and calls SchedulerAccessor.setTriggers(org.quartz.Trigger[]) to autowire triggers at afterPropertiesSet() time.

Since:
3.3.4
Version:
$Revision$ $Date$
Author:
Marvin S. Addison, Scott Battaglia

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
AutowiringSchedulerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBean
createScheduler, destroy, getConfigTimeDataSource, getConfigTimeNonTransactionalDataSource, getConfigTimeResourceLoader, getConfigTimeTaskExecutor, getObject, getObjectType, getScheduler, isRunning, isSingleton, setApplicationContextSchedulerContextKey, setAutoStartup, setBeanName, setConfigLocation, setDataSource, setExposeSchedulerInRepository, setJobFactory, setNonTransactionalDataSource, setQuartzProperties, setSchedulerContextAsMap, setSchedulerFactoryClass, setSchedulerName, setStartupDelay, setTaskExecutor, setWaitForJobsToCompleteOnShutdown, start, startScheduler, stop
 
Methods inherited from class org.springframework.scheduling.quartz.SchedulerAccessor
registerJobsAndTriggers, registerListeners, setCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobListeners, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTransactionManager, setTriggerListeners, setTriggers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutowiringSchedulerFactoryBean

public AutowiringSchedulerFactoryBean()
Method Detail

afterPropertiesSet

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

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Overrides:
setApplicationContext in class org.springframework.scheduling.quartz.SchedulerFactoryBean


Copyright © 2004-2009 Java Architectures Special Interest Group. All Rights Reserved.