
com.github.ltsopensource.spring.quartz.invoke.MethodInvokeJobExecution Maven / Gradle / Ivy
The newest version!
package com.github.ltsopensource.spring.quartz.invoke;
import com.github.ltsopensource.core.domain.Job;
import com.github.ltsopensource.spring.quartz.QuartzJobContext;
import org.springframework.util.MethodInvoker;
/**
* @author Robert HG ([email protected]) on 3/27/16.
*/
public class MethodInvokeJobExecution implements JobExecution {
private MethodInvoker methodInvoker;
public MethodInvokeJobExecution(MethodInvoker methodInvoker) {
this.methodInvoker = methodInvoker;
}
@Override
public void execute(QuartzJobContext quartzJobContext, Job job) throws Throwable {
methodInvoker.invoke();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy