org.gcube.common.scope.api
Interface ScopeProvider

All Known Implementing Classes:
DefaultScopeProvider

public interface ScopeProvider

Provides a scope in the caller's context.

Author:
Fabio Simeoni

Field Summary
static ScopeProvider instance
          Shared ScopeProvider.
 
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.
 

Field Detail

instance

static final ScopeProvider instance
Shared ScopeProvider.

Method Detail

get

String get()
Returns the scope in the caller's context.

Returns:
the scope

set

void set(String scope)
Sets the scope in the caller's context.

Parameters:
scope - the scope

reset

void reset()
Resets the scope in the caller's context.



Copyright © 2012. All Rights Reserved.