use of act.job.JobContext in project actframework by actframework.
the class ReflectedJobInvoker method apply.
@Override
public Object apply() throws NotAppliedException, $.Break {
if (null == jobClass) {
init();
}
if (disabled) {
return null;
}
JobContext ctx = JobContext.current();
ctx.handlerMethod(method);
Object job = jobClassInstance(app, ctx);
return invoke(job, ctx);
}
Aggregations