All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.n3r.quartz.glass.job.util.CurrentJobExecutionContext Maven / Gradle / Ivy

There is a newer version: 0.0.9
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy