|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.composition.model.impl.DefaultDependent
org.apache.avalon.composition.model.impl.DefaultContextModel
Specification of a context model from which a a fully qualifed context can be established.
Field Summary | |
static Class |
DEFAULT_CONTEXT_CLASS
The default context implementation class to be used if no context class is defined. |
Fields inherited from interface org.apache.avalon.composition.model.ContextModel |
DEFAULT_STRATEGY_CLASSNAME |
Constructor Summary | |
DefaultContextModel(Logger logger,
ContextDescriptor descriptor,
ContextDirective directive,
ComponentContext context)
Default implementation of the context model. |
Method Summary | |
Class |
getCastingClass()
Return the class that the context is castable to. |
Object |
getContext()
Return the context object established for the component. |
DeliveryDescriptor |
getDeliveryDescriptor()
Return the delivery descriptor. |
EntryModel |
getEntryModel(String key)
Return an entry model matching the supplied key. |
EntryModel[] |
getEntryModels()
Return the set of entry models associated with this context model. |
Class |
getStrategyClass()
Return the class representing the contextualization stage interface. |
static boolean |
isaStandardKey(String key)
|
boolean |
isEnabled()
Return the enabled state of the context model. |
void |
setEntry(String key,
Object value)
Set the entry to a suplied value. |
void |
setEntryModel(String key,
EntryModel model)
Set the entry model relative to a supplied key. |
Methods inherited from class org.apache.avalon.composition.model.impl.DefaultDependent |
clearProvider, getProvider, setProvider |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.avalon.composition.model.Dependent |
clearProvider, getProvider, setProvider |
Field Detail |
public static final Class DEFAULT_CONTEXT_CLASS
Constructor Detail |
public DefaultContextModel(Logger logger, ContextDescriptor descriptor, ContextDirective directive, ComponentContext context) throws ModelException
Default implementation of the context model. The implementation takes an inital system context as the base for context value establishment and uses this to set standard context entries.
logger
- the logging channeldescriptor
- the contextualization stage descriptor that describes
the set of context entries that the component type is requestingdirective
- the contextualization directive that describes a set
of context entry creation strategiescontext
- the component model context argumentMethod Detail |
public static boolean isaStandardKey(String key)
public boolean isEnabled()
ContextModel
isEnabled
in interface ContextModel
public DeliveryDescriptor getDeliveryDescriptor()
getDeliveryDescriptor
in interface ContextModel
public EntryModel[] getEntryModels()
getEntryModels
in interface ContextModel
public EntryModel getEntryModel(String key)
getEntryModel
in interface ContextModel
public void setEntryModel(String key, EntryModel model)
setEntryModel
in interface ContextModel
key
- the entry keymodel
- the entry modelpublic void setEntry(String key, Object value)
setEntry
in interface ContextModel
key
- the entry keyvalue
- the entry valuepublic Class getStrategyClass()
getStrategyClass
in interface ContextModel
public Class getCastingClass()
getCastingClass
in interface ContextModel
public Object getContext()
getContext
in interface ContextModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |