org.chenillekit.quartz
Class ChenilleKitQuartzModule

java.lang.Object
  extended by org.chenillekit.quartz.ChenilleKitQuartzModule

public class ChenilleKitQuartzModule
extends Object

Version:
$Id: ChenilleKitQuartzModule.java 618 2010-02-23 23:30:31Z homburgs $

Constructor Summary
ChenilleKitQuartzModule()
           
 
Method Summary
 QuartzSchedulerManager buildQuartzSchedulerManager(Logger logger, org.quartz.SchedulerFactory schedulerFactory, List<JobSchedulingBundle> jobSchedulingBundles)
          bind the Quartz based scheduler manager.
 org.quartz.SchedulerFactory buildSchedulerFactory(Logger logger, RegistryShutdownHub shutdownHub, List<URL> contributions)
          bind the Quartz scheduler factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChenilleKitQuartzModule

public ChenilleKitQuartzModule()
Method Detail

buildSchedulerFactory

public org.quartz.SchedulerFactory buildSchedulerFactory(Logger logger,
                                                         RegistryShutdownHub shutdownHub,
                                                         List<URL> contributions)
bind the Quartz scheduler factory.

first we look for configuration contribution. if not exists (is null) we try to access the quartz.properties in classpath.

Parameters:
shutdownHub - the shutdown hub
Returns:
scheduler factory

buildQuartzSchedulerManager

@EagerLoad
public QuartzSchedulerManager buildQuartzSchedulerManager(Logger logger,
                                                                    org.quartz.SchedulerFactory schedulerFactory,
                                                                    List<JobSchedulingBundle> jobSchedulingBundles)
bind the Quartz based scheduler manager.

Parameters:
schedulerFactory - the scheduler factory
jobSchedulingBundles - list of job detail and trigger bundles
Returns:
scheduler manager


Copyright © 2008-2010 ChenilleKit. All Rights Reserved.