|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Context
Context of the plexus container.
Method Summary | |
---|---|
boolean |
contains(java.lang.Object key)
Returns true if the map or the parent map contains the key. |
java.lang.Object |
get(java.lang.Object key)
Returns the value of the key. |
java.util.Map |
getContextData()
Utility method to retrieve containerContext data. |
void |
hide(java.lang.Object key)
Hides the item in the containerContext. |
void |
makeReadOnly()
Make the containerContext read-only. |
void |
put(java.lang.Object key,
java.lang.Object value)
Adds the item to the containerContext. |
Method Detail |
---|
java.lang.Object get(java.lang.Object key) throws ContextException
key
- The key of the value to look up.
ContextException
- If the key doesn't exist.java.util.Map getContextData()
boolean contains(java.lang.Object key)
key
- The key to search for.
void put(java.lang.Object key, java.lang.Object value) throws java.lang.IllegalStateException
key
- the key of the itemvalue
- the item
java.lang.IllegalStateException
- if containerContext is read onlyvoid hide(java.lang.Object key) throws java.lang.IllegalStateException
key
- the items key
java.lang.IllegalStateException
- if containerContext is read onlyvoid makeReadOnly()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |