org.apache.cocoon.core.container.spring.avalon
Class ComponentContext

java.lang.Object
  extended byorg.apache.avalon.framework.context.DefaultContext
      extended byorg.apache.cocoon.core.container.spring.avalon.ComponentContext
All Implemented Interfaces:
Context, Serializable

public class ComponentContext
extends DefaultContext

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.

Version:
$Id: ComponentContext.html 1304280 2012-03-23 11:18:01Z ilgrosso $
See Also:
ContextHelper, Serialized Form

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.
 
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

OBJECT_MODEL_KEY_PREFIX

protected static final String OBJECT_MODEL_KEY_PREFIX
See Also:
Constant Field Values
Constructor Detail

ComponentContext

public ComponentContext(Context parent)
Create a Context with specified parent.

Parameters:
parent - the parent Context (may be null)

ComponentContext

public ComponentContext()
Create a Context with no parent.

Method Detail

get

public Object get(Object key)
           throws ContextException
Retrieve an item from the Context.

Parameters:
key - the key of item
Returns:
the item stored in context
Throws:
ContextException - if item not present


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.