org.n3r.quartz.glass.job.util.CurrentJobExecutionContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quartz-glass Show documentation
Show all versions of quartz-glass Show documentation
A web user interface for quartz
package org.n3r.quartz.glass.job.util;
import org.quartz.JobExecutionContext;
/**
* @author damien bourdette
* @version \$Revision$
*/
public class CurrentJobExecutionContext {
private static ThreadLocal threadContext = new ThreadLocal();
public static JobExecutionContext get() {
return threadContext.get();
}
public static void set(JobExecutionContext context) {
threadContext.set(context);
}
public static void unset() {
threadContext.set(null);
}
}