Class 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 implements executeJob(JobExecutionContext).

    Since:
    1.8
    Version:
    $Id: 60a9906f513b68b5ecb7c65c15eaa627d2ba3c66 $
    • Constructor Detail

      • AbstractJob

        public AbstractJob()
    • Method Detail

      • execute

        public final void execute​(org.quartz.JobExecutionContext jobContext)
                           throws org.quartz.JobExecutionException
        Specified by:
        execute in interface org.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