|
|||||||||||
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(Map map)
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(Map map)
Creation of a new default context.
map
- a map of context entry handlersMethod 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 resolution 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 |