org.apache.commons.jelly.tags.quartz
Class QuartzTagSupport

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.quartz.QuartzTagSupport
All Implemented Interfaces:
org.apache.commons.jelly.Tag
Direct Known Subclasses:
CronTriggerTag, JobTag, TriggerTag, WaitForSchedulerTag

public abstract class QuartzTagSupport
extends org.apache.commons.jelly.TagSupport

Basic support for all tags requiring a Quartz scheduler.

Author:
bob mcwhirter

Field Summary
static java.lang.String SCHED_VAR_NAME
          The scheduler variable name in the JellyContext.
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
QuartzTagSupport()
           
 
Method Summary
 org.quartz.Scheduler getScheduler()
          Retrieve or create a scheduler.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jelly.Tag
doTag
 

Field Detail

SCHED_VAR_NAME

public static final java.lang.String SCHED_VAR_NAME
The scheduler variable name in the JellyContext.

See Also:
Constant Field Values
Constructor Detail

QuartzTagSupport

public QuartzTagSupport()
Method Detail

getScheduler

public org.quartz.Scheduler getScheduler()
                                  throws org.quartz.SchedulerException
Retrieve or create a scheduler.

If a scheduler has already been created an installed in the variable SCHED_VAR_NAME, then that scheduler will be returned. Otherwise, a new StdScheduler will be created, started, and installed. Additionally, a runtime shutdown hook will be added to cleanly shutdown the scheduler.

Returns:
The scheduler.
Throws:
org.quartz.SchedulerException - If there is an error creating the scheduler.


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.