public class QuartzJobAwareBeanFactory
extends org.springframework.scheduling.quartz.SpringBeanJobFactory
SpringBeanJobFactory which is responsible for initialising
Job Class. This wrapper will get the already available Job Class bean from the respective
Application Context and wire it altogether and returns the Job class instance.
This will work only if
1) scheduler application context file name is applicationQuartzContext-xyz (xyz=module name)
2) The below have to be set in JobDetailBean definition's jobDataAsMap
a) jobBeanName (name or id of the job class bean)
b) moduleName| Constructor and Description |
|---|
QuartzJobAwareBeanFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
createJobInstance(org.quartz.spi.TriggerFiredBundle bundle)
An implementation of SpringBeanJobFactory that retrieves the bean from
the Spring application context for a particular module and wrap it up
with other values from jobDataAsMap.
|
void |
setIgnoredUnknownProperties(String[] ignoredUnknownProperties) |
isEligibleForPropertyPopulation, setSchedulerContextpublic void setIgnoredUnknownProperties(String[] ignoredUnknownProperties)
setIgnoredUnknownProperties in class org.springframework.scheduling.quartz.SpringBeanJobFactoryprotected Object createJobInstance(org.quartz.spi.TriggerFiredBundle bundle)
createJobInstance in class org.springframework.scheduling.quartz.SpringBeanJobFactoryCopyright © 2015–2017 eGovernments Foundation. All rights reserved.