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

org.jtwig.environment.EnvironmentHolder Maven / Gradle / Ivy

package org.jtwig.environment;

public class EnvironmentHolder {
    private static ThreadLocal instance = new InheritableThreadLocal<>();

    public static Environment get () {
        return instance.get();
    }

    public static Environment set (Environment environment) {
        instance.set(environment);
        return environment;
    }

    public static void remove () {
        instance.remove();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy