|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.model.impl.DefaultContext
Default implementation of a context object. The implementation maintains a mapping between context keys and context entry models. Requests for a context entry value are resolved through redirecting the request to an assigned model.
Constructor Summary | |
DefaultContext(DeploymentContext context)
Creation of a new default context. |
Method Summary | |
Object |
get(Object key)
Return a context value relative to a key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultContext(DeploymentContext context)
Creation of a new default context.
context
- the deployment contextMethod Detail |
public Object get(Object key) throws ContextException
ContextException
containing the key as
as the exception message and a null cause will be thrown. If
the contrext entry is recognized and a error occurs during
value resolvution a ContextException
will be thrown
containing the causal exception.
get
in interface Context
key
- the context entry key
ContextException
- if the key is unknown or unresolvable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |