org.jboss.seam.contexts
public class BasicContext extends Object implements Context
| Modifier | Constructor and Description |
|---|---|
|
BasicContext(ScopeType scope) |
protected |
BasicContext(ScopeType scope,
Map<String,Object> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Force synchronization to the underlying state store.
|
Object |
get(Class clazz)
Get a component instance, by its component name,
as determined by the @Name annotation value.
|
Object |
get(String name)
Get a value by name.
|
String[] |
getNames()
Get all names defined in the context.
|
ScopeType |
getType()
Get the scope that this context object is associated with,
|
boolean |
isSet(String name)
Is the value set?
|
void |
remove(String name)
Unset a value.
|
void |
set(String name,
Object value)
Set a value.
|
String |
toString() |
public BasicContext(ScopeType scope)
public ScopeType getType()
Contextpublic Object get(Class clazz)
Contextpublic String[] getNames()
Contextpublic boolean isSet(String name)
Contextpublic void set(String name, Object value)
Contextpublic void flush()
ContextCopyright © 2015 Seam Framework. All Rights Reserved.