|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.scope.impl.DefaultScopeProvider
public class DefaultScopeProvider
A ScopeProvider that uses threads as contexts.
Relies an an internal InheritableThreadLocal.
ScopeProviderScanner| Field Summary | |
|---|---|
static String |
SCOPE_PROPERTY
System property for scope |
| Fields inherited from interface org.gcube.common.scope.api.ScopeProvider |
|---|
instance |
| Constructor Summary | |
|---|---|
protected |
DefaultScopeProvider()
|
| Method Summary | |
|---|---|
String |
get()
Returns the scope in the caller's context. |
void |
reset()
Resets the scope in the caller's context. |
void |
set(String scope)
Sets the scope in the caller's context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SCOPE_PROPERTY
| Constructor Detail |
|---|
protected DefaultScopeProvider()
| Method Detail |
|---|
public String get()
ScopeProvider
get in interface ScopeProviderpublic void set(String scope)
ScopeProvider
set in interface ScopeProviderscope - the scopepublic void reset()
ScopeProvider
reset in interface ScopeProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||