Search in sources :

Example 1 with JobContext

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);
}
Also used : JobContext(act.job.JobContext)

Aggregations

JobContext (act.job.JobContext)1