@Builtin @Name(value="org.eiichiro.gig.Namespace") @Singleton public class Namespace extends Object
Namespace provides a facility to get/set the value corresponding to
the specified key in the current context of the specified scope.
This API is designed for shared-multitenancy application.| Modifier and Type | Class and Description |
|---|---|
static class |
Namespace.Store
Namespace value store.
|
| Constructor and Description |
|---|
Namespace() |
| Modifier and Type | Method and Description |
|---|---|
String |
get(Class<? extends Annotation> scope,
String key)
Gets the value corresponding to the specified key in the current
context of the specified scope.
|
void |
set(Class<? extends Annotation> scope,
String key,
String value)
Sets the specified key and value into the current context of the
specified scope.
|
public String get(Class<? extends Annotation> scope, String key)
scope - Scope qualifier.key - The key to value.public void set(Class<? extends Annotation> scope, String key, String value)
scope - Scope qualifier.key - The key to value.value - The value to be stored.Copyright © 2011-2014 Eiichiro Uchiumi. All Rights Reserved.