org.alfresco.repo.scheduler
Class AlfrescoJobFactory

java.lang.Object
  extended by org.springframework.scheduling.quartz.AdaptableJobFactory
      extended by org.springframework.scheduling.quartz.SpringBeanJobFactory
          extended by org.alfresco.repo.scheduler.AlfrescoJobFactory
All Implemented Interfaces:
org.quartz.spi.JobFactory, org.springframework.context.ApplicationContextAware, org.springframework.scheduling.quartz.SchedulerContextAware

public class AlfrescoJobFactory
extends org.springframework.scheduling.quartz.SpringBeanJobFactory
implements org.springframework.context.ApplicationContextAware

A special Job Factory that is based on the usual SpringBeanJobFactory, but also handles ApplicationContextAware job beans.


Constructor Summary
AlfrescoJobFactory()
           
 
Method Summary
protected  java.lang.Object createJobInstance(org.quartz.spi.TriggerFiredBundle bundle)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class org.springframework.scheduling.quartz.SpringBeanJobFactory
isEligibleForPropertyPopulation, setIgnoredUnknownProperties, setSchedulerContext
 
Methods inherited from class org.springframework.scheduling.quartz.AdaptableJobFactory
adaptJob, newJob
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlfrescoJobFactory

public AlfrescoJobFactory()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

createJobInstance

protected java.lang.Object createJobInstance(org.quartz.spi.TriggerFiredBundle bundle)
                                      throws java.lang.Exception
Overrides:
createJobInstance in class org.springframework.scheduling.quartz.SpringBeanJobFactory
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.