|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Contextpublic Object get(Class clazz)
Context
get in interface Contextpublic Object get(String name)
Context
get in interface Contextpublic String[] getNames()
Context
getNames in interface Contextpublic boolean isSet(String name)
Context
isSet in interface Contextpublic void remove(String name)
Context
remove in interface Context
public void set(String name,
Object value)
Context
set in interface Contextpublic void flush()
Context
flush in interface Contextpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||