java.lang.Objectorg.springframework.util.MethodInvoker
org.springframework.beans.support.ArgumentConvertingMethodInvoker
org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean
All Implemented Interfaces:
BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, InitializingBean, FactoryBean
Inherits common configuration properties from the MethodInvoker base class, such as "targetObject" and "targetMethod" , adding support for lookup of the target bean by name through the "targetBeanName" property (as alternative to specifying a "targetObject" directly, allowing for non-singleton target objects).
Supports both concurrently running jobs and non-currently running jobs through the "concurrent" property. Jobs created by this MethodInvokingJobDetailFactoryBean are by default volatile and durable (according to Quartz terminology).
NOTE: JobDetails created via this FactoryBean are not serializable and thus not suitable for persistent job stores. You need to implement your own Quartz Job as a thin wrapper for each case where you want a persistent job to delegate to a specific service method.
Juergen - HoellerAlef - Arendsen18.02.2004 - | Nested Class Summary: | ||
|---|---|---|
| public static class | MethodInvokingJobDetailFactoryBean.MethodInvokingJob | Quartz Job implementation that invokes a specified method. Automatically applied by MethodInvokingJobDetailFactoryBean. |
| public static class | MethodInvokingJobDetailFactoryBean.StatefulMethodInvokingJob | Extension of the MethodInvokingJob, implementing the StatefulJob interface. Quartz checks whether or not jobs are stateful and if so, won't let jobs interfere with each other. |
| Method from org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean Summary: |
|---|
| afterPropertiesSet, getObject, getObjectType, getTargetClass, getTargetObject, isSingleton, postProcessJobDetail, resolveClassName, setBeanClassLoader, setBeanFactory, setBeanName, setConcurrent, setGroup, setJobListenerNames, setName, setTargetBeanName |
| Methods from org.springframework.beans.support.ArgumentConvertingMethodInvoker: |
|---|
| doFindMatchingMethod, findMatchingMethod, getDefaultTypeConverter, getTypeConverter, registerCustomEditor, setTypeConverter |
| Methods from org.springframework.util.MethodInvoker: |
|---|
| findMatchingMethod, getArguments, getPreparedMethod, getTargetClass, getTargetMethod, getTargetObject, getTypeDifferenceWeight, invoke, isPrepared, prepare, resolveClassName, setArguments, setStaticMethod, setTargetClass, setTargetMethod, setTargetObject |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean Detail: |
|---|
|
|
|
|
|
|
The default implementation is empty. Can be overridden in subclasses. |
|
|
|
|
The default setting is to run jobs concurrently. |
Default is the default group of the Scheduler. |
A JobListener name always refers to the name returned by the JobListener implementation. |
Default is the bean name of this FactoryBean. |
This is an alternative to specifying "targetObject" , allowing for non-singleton beans to be invoked. Note that specified "targetObject" and "targetClass" values will override the corresponding effect of this "targetBeanName" setting (i.e. statically pre-define the bean type or even the bean object). |