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

io.bdeploy.jersey.JerseyScopeService Maven / Gradle / Ivy

Go to download

Public API including dependencies, ready to be used for integrations and plugins.

There is a newer version: 7.4.0
Show newest version
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