public class QuartzJobFactory extends Object implements org.quartz.spi.JobFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_PATH |
| Constructor and Description |
|---|
QuartzJobFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.logging.log4j.Logger |
getLog() |
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.
|
org.quartz.Job |
newJob(org.quartz.spi.TriggerFiredBundle bundle,
org.quartz.Scheduler scheduler) |
protected void |
setBeanProps(Object obj,
org.quartz.JobDataMap data) |
void |
setLog(org.apache.logging.log4j.Logger pLog) |
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.
|
public static final String COMPONENT_PATH
public org.quartz.Job newJob(org.quartz.spi.TriggerFiredBundle bundle,
org.quartz.Scheduler scheduler)
throws org.quartz.SchedulerException
newJob in interface org.quartz.spi.JobFactoryorg.quartz.SchedulerExceptionprotected void setBeanProps(Object obj, org.quartz.JobDataMap data) throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic boolean isThrowIfPropertyNotFound()
public void setThrowIfPropertyNotFound(boolean throwIfNotFound)
throwIfNotFound - defaults to false.public boolean isWarnIfPropertyNotFound()
public void setWarnIfPropertyNotFound(boolean warnIfNotFound)
warnIfNotFound - defaults to true.public org.apache.logging.log4j.Logger getLog()
public void setLog(org.apache.logging.log4j.Logger pLog)
Copyright © 2019. All rights reserved.