Package com.xpn.xwiki.plugin.scheduler
Class AbstractJob
- java.lang.Object
-
- com.xpn.xwiki.plugin.scheduler.AbstractJob
-
- All Implemented Interfaces:
org.quartz.Job
- Direct Known Subclasses:
GroovyJob
public abstract class AbstractJob extends Object implements org.quartz.Job
Base class for any XWiki Quartz Job. This class take care of initializing ExecutionContext properly.A class extending
AbstractJob
should implementsexecuteJob(JobExecutionContext)
.- Since:
- 1.8
- Version:
- $Id: 60a9906f513b68b5ecb7c65c15eaa627d2ba3c66 $
-
-
Constructor Summary
Constructors Constructor Description AbstractJob()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute(org.quartz.JobExecutionContext jobContext)
protected abstract void
executeJob(org.quartz.JobExecutionContext jobContext)
protected XWikiContext
getXWikiContext()
-
-
-
Method Detail
-
execute
public final void execute(org.quartz.JobExecutionContext jobContext) throws org.quartz.JobExecutionException
- Specified by:
execute
in interfaceorg.quartz.Job
- Throws:
org.quartz.JobExecutionException
-
getXWikiContext
protected XWikiContext getXWikiContext()
-
executeJob
protected abstract void executeJob(org.quartz.JobExecutionContext jobContext) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
-