org.jboss.seam.cron.scheduling.quartz
Class QuartzScheduleProvider

java.lang.Object
  extended by org.jboss.seam.cron.scheduling.quartz.QuartzScheduleProvider
All Implemented Interfaces:
CronProviderLifecycle, CronSchedulingProvider

public class QuartzScheduleProvider
extends Object
implements CronProviderLifecycle, CronSchedulingProvider

Methods of this class are called at various stages of the JSR-299 initialization to set up and start the appropriate schedules in line with the scheduled events being observed by the application.

Author:
Peter Royle

Field Summary
static String MANAGER_NAME
          The name of the JSR-299 BeanManager instance when a reference to it is stored and retrieved from the job details.
static String QUALIFIER
          The name of the property containing the observer method bindings to be used when storing and retrieving it from the job details.
static String SCHEDULE_JOB_GROUP
          The name of the job group for all arbitrarily scheduled events.
static String TRIGGER_SUPPLIES
           
 
Constructor Summary
QuartzScheduleProvider()
           
 
Method Summary
 void destroyProvider()
          Shutdown the scheduler on application close.
 org.quartz.Scheduler getScheduler()
           
 void initProvider()
          Initialises the scheduler.
 void processIntervalTrigger(IntervalTriggerDetail intervalTriggerDetails)
           
 void processScheduledTrigger(ScheduledTriggerDetail schedTriggerDetails)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUALIFIER

public static final String QUALIFIER
The name of the property containing the observer method bindings to be used when storing and retrieving it from the job details.

See Also:
Constant Field Values

SCHEDULE_JOB_GROUP

public static final String SCHEDULE_JOB_GROUP
The name of the job group for all arbitrarily scheduled events.

See Also:
Constant Field Values

MANAGER_NAME

public static final String MANAGER_NAME
The name of the JSR-299 BeanManager instance when a reference to it is stored and retrieved from the job details.

See Also:
Constant Field Values

TRIGGER_SUPPLIES

public static final String TRIGGER_SUPPLIES
See Also:
Constant Field Values
Constructor Detail

QuartzScheduleProvider

public QuartzScheduleProvider()
Method Detail

initProvider

public void initProvider()
                  throws CronProviderInitialisationException
Initialises the scheduler.

Specified by:
initProvider in interface CronProviderLifecycle
Throws:
CronProviderInitialisationException

processScheduledTrigger

public void processScheduledTrigger(ScheduledTriggerDetail schedTriggerDetails)
                             throws ParseException,
                                    org.quartz.SchedulerException,
                                    InternalError
Specified by:
processScheduledTrigger in interface CronSchedulingProvider
Throws:
ParseException
org.quartz.SchedulerException
InternalError

processIntervalTrigger

public void processIntervalTrigger(IntervalTriggerDetail intervalTriggerDetails)
                            throws ParseException,
                                   org.quartz.SchedulerException,
                                   InternalError
Specified by:
processIntervalTrigger in interface CronSchedulingProvider
Throws:
ParseException
org.quartz.SchedulerException
InternalError

destroyProvider

public void destroyProvider()
                     throws CronProviderDestructionException
Shutdown the scheduler on application close.

Specified by:
destroyProvider in interface CronProviderLifecycle
Throws:
CronProviderDestructionException

getScheduler

public org.quartz.Scheduler getScheduler()
Returns:
the scheduler


Copyright © 2011 Seam Framework. All Rights Reserved.