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();
}
}