Package com.blueriq.component.api.quartz
Class AutoWiringSpringBeanJobFactory
java.lang.Object
org.springframework.scheduling.quartz.AdaptableJobFactory
org.springframework.scheduling.quartz.SpringBeanJobFactory
com.blueriq.component.api.quartz.AutoWiringSpringBeanJobFactory
- All Implemented Interfaces:
org.quartz.spi.JobFactory
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.scheduling.quartz.SchedulerContextAware
public final class AutoWiringSpringBeanJobFactory
extends org.springframework.scheduling.quartz.SpringBeanJobFactory
Creates job instances assuming that there is a prototype-scoped bean defined in the Spring Application Context for
every job class defined in JobDetail instances.
Job instances created with this factory support annotation-driven transactions, autowiring and all other regular
Spring Beans features.
- Since:
- 10.4
-
Constructor Summary
ConstructorsConstructorDescriptionAutoWiringSpringBeanJobFactory
(org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
createJobInstance
(org.quartz.spi.TriggerFiredBundle bundle) Methods inherited from class org.springframework.scheduling.quartz.SpringBeanJobFactory
isEligibleForPropertyPopulation, setApplicationContext, setIgnoredUnknownProperties, setSchedulerContext
Methods inherited from class org.springframework.scheduling.quartz.AdaptableJobFactory
adaptJob, newJob
-
Constructor Details
-
AutoWiringSpringBeanJobFactory
public AutoWiringSpringBeanJobFactory(org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
createJobInstance
- Overrides:
createJobInstance
in classorg.springframework.scheduling.quartz.SpringBeanJobFactory
- Throws:
Exception
-