Class MethodInvokingJobDetailFactoryBean.MethodInvokingJob
- java.lang.Object
- org.springframework.scheduling.quartz.QuartzJobBean
- org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean.MethodInvokingJob
- All Implemented Interfaces:
Job
- Direct Known Subclasses:
MethodInvokingJobDetailFactoryBean.StatefulMethodInvokingJob
- Enclosing class:
- MethodInvokingJobDetailFactoryBean
public static class MethodInvokingJobDetailFactoryBean.MethodInvokingJob extends QuartzJobBean
Quartz Job implementation that invokes a specified method. Automatically applied by MethodInvokingJobDetailFactoryBean.
Constructor Summary
Constructors Constructor Description MethodInvokingJob()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
executeInternal(JobExecutionContext context)
Invoke the method via the MethodInvoker.void
setMethodInvoker(MethodInvoker methodInvoker)
Set the MethodInvoker to use.Methods inherited from class org.springframework.scheduling.quartz.QuartzJobBean
execute
Constructor Detail
MethodInvokingJob
public MethodInvokingJob()
Method Detail
setMethodInvoker
public void setMethodInvoker(MethodInvoker methodInvoker)
Set the MethodInvoker to use.
executeInternal
protected void executeInternal(JobExecutionContext context) throws JobExecutionException
Invoke the method via the MethodInvoker.- Specified by:
executeInternal
in classQuartzJobBean
- Throws:
JobExecutionException
- See Also:
QuartzJobBean.execute(org.quartz.JobExecutionContext)