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()
Context
public Object get(Class clazz)
Context
public String[] getNames()
Context
public boolean isSet(String name)
Context
public void set(String name, Object value)
Context
public void flush()
Context
Copyright © 2015 Seam Framework. All Rights Reserved.