|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.context.DefaultContext
org.apache.cocoon.components.ComponentContext
public class ComponentContext
This is the Context implementation for Cocoon components.
It extends the DefaultContext by a special handling for
getting objects from the object model and other application information.
ContextHelper,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
ComponentContext.ComponentManagerWrapper
|
static class |
ComponentContext.ComponentSelectorWrapper
|
| Field Summary | |
|---|---|
protected static String |
OBJECT_MODEL_KEY_PREFIX
|
| Constructor Summary | |
|---|---|
ComponentContext()
Create a Context with no parent. |
|
ComponentContext(Context parent)
Create a Context with specified parent. |
|
ComponentContext(Map contextData)
Create a Context with specified data. |
|
ComponentContext(Map contextData,
Context parent)
Create a Context with specified data and parent. |
|
| Method Summary | |
|---|---|
Object |
get(Object key)
Retrieve an item from the Context. |
| Methods inherited from class org.apache.avalon.framework.context.DefaultContext |
|---|
checkWriteable, equals, getContextData, getParent, hashCode, hide, makeReadOnly, put |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String OBJECT_MODEL_KEY_PREFIX
| Constructor Detail |
|---|
public ComponentContext(Map contextData,
Context parent)
contextData - the context dataparent - the parent Context (may be null)public ComponentContext(Map contextData)
contextData - the context datapublic ComponentContext(Context parent)
parent - the parent Context (may be null)public ComponentContext()
| Method Detail |
|---|
public Object get(Object key)
throws ContextException
get in interface Contextget in class DefaultContextkey - the key of item
ContextException - if item not present
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||