|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.xworkquartz.dispatcher.QuartzDispatcher
This class holds the main dispatcher routines used to run XWork actions within Quartz. There are several subclasses of QuartzDispatcher which come with this package and implement different action name/namespace lookup strategies:
ASMJobClassGenerator
,
NameQuartzDispatcher
,
DataMapQuartzDispatcher
Field Summary | |
static java.lang.String |
COMPONENT_MANAGER
Constant for the XWork component manager. |
protected static org.apache.commons.logging.Log |
log
Logger for this class. |
Fields inherited from interface net.sf.xworkquartz.QuartzStatics |
JOB_CONTEXT |
Constructor Summary | |
QuartzDispatcher()
|
Method Summary | |
java.util.Map |
createContextMap(java.util.Map executionMap,
java.util.Map parameterMap,
java.util.Map schedulerMap,
JobExecutionContext context)
Merges all scheduler and job attributes into a single Map to represent the entire Action context. |
void |
execute(JobExecutionContext jobCtx)
|
void |
executeAction(java.lang.String namespace,
java.lang.String actionName,
JobExecutionContext ctx)
Executes the XWork action specified by namespace and name. |
abstract java.lang.String |
getActionName(JobExecutionContext ctx)
Implement this method in order to provide your own action name lookup strategy. |
abstract java.lang.String |
getActionNamespace(JobExecutionContext ctx)
Implement this method in order to provide your own action namespace lookup strategy. |
protected java.util.Map |
getExecutionMap(JobExecutionContext context)
Returns a Map of all execution attributes. |
protected java.util.Map |
getParameters(JobExecutionContext context)
Returns a Map of all execution parameters. |
protected java.util.Map |
getSchedulerMap(JobExecutionContext context)
Returns a Map of all scheduler attributes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.commons.logging.Log log
public static final java.lang.String COMPONENT_MANAGER
Constructor Detail |
public QuartzDispatcher()
Method Detail |
public final void execute(JobExecutionContext jobCtx) throws JobExecutionException
execute
in interface Job
JobExecutionException
Job.execute(org.quartz.JobExecutionContext)
public abstract java.lang.String getActionName(JobExecutionContext ctx)
ctx
- a JobExecutionContext
public abstract java.lang.String getActionNamespace(JobExecutionContext ctx)
ctx
- a JobExecutionContext
public java.util.Map createContextMap(java.util.Map executionMap, java.util.Map parameterMap, java.util.Map schedulerMap, JobExecutionContext context)
executionMap
- a Map of all execution attributes.parameterMap
- a Map of all execution parameters.schedulerMap
- a Map of all scheduler attributes.context
- a JobExecutionContext object.
public void executeAction(java.lang.String namespace, java.lang.String actionName, JobExecutionContext ctx)
namespace
- the namespace of an actionactionName
- the name of the actionctx
- a JobExecutionContextprotected java.util.Map getParameters(JobExecutionContext context)
JobDetail.getJobDataMap()
. Override this method to
customize how execution parameters are mapped.
context
- a JobExecutionContext object.
protected java.util.Map getSchedulerMap(JobExecutionContext context)
Scheduler.getContext()
. Override this
method to customize how scheduler attributes are mapped.
context
- a JobExecutionContext object.
protected java.util.Map getExecutionMap(JobExecutionContext context)
context
- a JobExecutionContext object.
|
XWork-Quartz Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |