io.bdeploy.jersey.JerseyScopeService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Public API including dependencies, ready to be used for integrations and plugins.
package io.bdeploy.jersey;
import org.jvnet.hk2.annotations.Service;
import io.bdeploy.jersey.ws.change.msg.ObjectScope;
@Service
public class JerseyScopeService {
private final ThreadLocal scope = ThreadLocal.withInitial(() -> ObjectScope.EMPTY);
public void setScope(ObjectScope scope) {
this.scope.set(scope);
}
public void clear() {
this.scope.remove();
}
public ObjectScope getObjectScope() {
return scope.get();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy