|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.simpl.SimpleJobFactory
org.quartz.simpl.PropertySettingJobFactory
public class PropertySettingJobFactory
A JobFactory that instantiates the Job instance (using the default no-arg
constructor, or more specifically: class.newInstance()), and
then attempts to set all values from the SchedulerContext and
the JobExecutionContext's merged JobDataMap onto
bean properties of the Job.
JobFactory,
SimpleJobFactory,
SchedulerContext,
JobExecutionContext.getMergedJobDataMap(),
setWarnIfPropertyNotFound(boolean),
setThrowIfPropertyNotFound(boolean)| Constructor Summary | |
|---|---|
PropertySettingJobFactory()
|
|
| Method Summary | |
|---|---|
boolean |
isThrowIfPropertyNotFound()
Whether the JobInstantiation should fail and throw and exception if a key (name) and value (type) found in the JobDataMap does not correspond to a proptery setter on the Job class. |
boolean |
isWarnIfPropertyNotFound()
Whether a warning should be logged if a key (name) and value (type) found in the JobDataMap does not correspond to a proptery setter on the Job class. |
Job |
newJob(org.quartz.spi.TriggerFiredBundle bundle,
Scheduler scheduler)
|
protected void |
setBeanProps(java.lang.Object obj,
JobDataMap data)
|
void |
setThrowIfPropertyNotFound(boolean throwIfNotFound)
Whether the JobInstantiation should fail and throw and exception if a key (name) and value (type) found in the JobDataMap does not correspond to a proptery setter on the Job class. |
void |
setWarnIfPropertyNotFound(boolean warnIfNotFound)
Whether a warning should be logged if a key (name) and value (type) found in the JobDataMap does not correspond to a proptery setter on the Job class. |
| Methods inherited from class org.quartz.simpl.SimpleJobFactory |
|---|
getLog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertySettingJobFactory()
| Method Detail |
|---|
public Job newJob(org.quartz.spi.TriggerFiredBundle bundle,
Scheduler scheduler)
throws SchedulerException
newJob in interface org.quartz.spi.JobFactorynewJob in class SimpleJobFactorySchedulerException
protected void setBeanProps(java.lang.Object obj,
JobDataMap data)
throws SchedulerException
SchedulerExceptionpublic boolean isThrowIfPropertyNotFound()
public void setThrowIfPropertyNotFound(boolean throwIfNotFound)
throwIfNotFound - defaults to false.public boolean isWarnIfPropertyNotFound()
public void setWarnIfPropertyNotFound(boolean warnIfNotFound)
warnIfNotFound - defaults to true.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||