io.yawp.driver.postgresql.datastore.NamespaceManager Maven / Gradle / Ivy
package io.yawp.driver.postgresql.datastore;
import io.yawp.repository.Namespace;
public class NamespaceManager {
private static ThreadLocal namespace = new ThreadLocal();
private NamespaceManager() {}
public static String get() {
String ns = namespace.get();
return ns == null ? Namespace.GLOBAL : ns;
}
public static void set(String ns) {
namespace.set(ns);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy