|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.contexts.BasicContext
public class BasicContext
A basic implementation of Context that keeps the state in a Map.
Constructor Summary | |
---|---|
|
BasicContext(ScopeType scope)
|
protected |
BasicContext(ScopeType scope,
Map<String,Object> map)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicContext(ScopeType scope)
protected BasicContext(ScopeType scope, Map<String,Object> map)
Method Detail |
---|
public ScopeType getType()
Context
getType
in interface Context
public Object get(Class clazz)
Context
get
in interface Context
public Object get(String name)
Context
get
in interface Context
public String[] getNames()
Context
getNames
in interface Context
public boolean isSet(String name)
Context
isSet
in interface Context
public void remove(String name)
Context
remove
in interface Context
public void set(String name, Object value)
Context
set
in interface Context
public void flush()
Context
flush
in interface Context
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |