public class JobDetailFactoryBean extends java.lang.Object implements FactoryBean, InitializingBean
Simplified version of Spring's MethodInvokingJobDetailFactoryBean that avoids issues with non-serializable classes (for JDBC storage).
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
APPLICATION_NAME_PARAMETER |
The job data entry naming the application a job was registered by. |
static java.lang.String |
JOB_NAME_PARAMETER |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
afterPropertiesSet(){@inheritDoc} |
|
public JobDetail |
getObject(){@inheritDoc} |
|
public java.lang.Class<JobDetail> |
getObjectType(){@inheritDoc} |
|
public boolean |
isSingleton(){@inheritDoc} |
|
public void |
setApplicationName(java.lang.String applicationName)Sets the name of the application the job belongs to. |
|
public void |
setJobClass(GrailsJobClass jobClass) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The job data entry naming the application a job was registered by. It is what tells the jobs of one application apart from the jobs of another when both share a job store.
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Sets the name of the application the job belongs to. The job carries it as job data, so that the application can recognise its own jobs in a job store it shares with other applications.
applicationName - the name of the application registering the job