public abstract class

AbstractJob

extends QuartzJobBean
implements LocaleProvider
java.lang.Object
   ↳ org.springframework.scheduling.quartz.QuartzJobBean
     ↳ com.atlassian.quartz.jobs.AbstractJob
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

A base class for Quatz jobs in Confluence. It ensures that the application is in a correct state before any jobs are executed.

Summary

Constants
String DEFAULT_SESSION_FACTORY_BEAN_NAME
Fields
protected List textProviders
Public Constructors
AbstractJob()
Public Methods
void addAssociatedActionForResources(Class actionClass)
abstract void doExecute(JobExecutionContext jobExecutionContext)
final void executeInternal(JobExecutionContext jobExecutionContext)
Locale getLocale()
ResourceBundle getResourceBundle()
This is a template method that can be used by extending classes to associate a ResourceBundle with the job.
String getText(String textName)
String getText(String textName, List args)
void setApplicationConfig(ApplicationConfiguration applicationConfig)
void setSessionFactory(SessionFactory sessionFactory)
Protected Methods
boolean allowConcurrentExecution()
[Expand]
Inherited Methods
From class org.springframework.scheduling.quartz.QuartzJobBean
From class java.lang.Object
From interface com.opensymphony.xwork.LocaleProvider
From interface org.quartz.Job

Constants

public static final String DEFAULT_SESSION_FACTORY_BEAN_NAME

Constant Value: "sessionFactory"

Fields

protected List textProviders

Public Constructors

public AbstractJob ()

Public Methods

public void addAssociatedActionForResources (Class actionClass)

public abstract void doExecute (JobExecutionContext jobExecutionContext)

Throws
JobExecutionException

public final void executeInternal (JobExecutionContext jobExecutionContext)

Throws
JobExecutionException

public Locale getLocale ()

public ResourceBundle getResourceBundle ()

This is a template method that can be used by extending classes to associate a ResourceBundle with the job. This can be useful when using the Job's getText methods for I18n in velocity pages By default the method will lookup a property resource bundle based on the Job class name and package

Returns
  • the resource bundle to associate with the job or null

public String getText (String textName)

public String getText (String textName, List args)

public void setApplicationConfig (ApplicationConfiguration applicationConfig)

public void setSessionFactory (SessionFactory sessionFactory)

Protected Methods

protected boolean allowConcurrentExecution ()