|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.data.ContextDirective
A context descriptor declares the context creation criteria for the context instance and context entries.
XML
A context directive may contain multiple import statements. Each import statement corresponds to a request for a context value from the container.
<context class="MyContextClass"> <entry key="special"> <import key="urn:avalon:classloader"/> </entry> <entry key="xxx"> <param class="MySpecialClass"> <param>hello</param> <param class="java.io.File">../lib</param> </param> </entry> </context>
EntryDirective
,
Serialized FormConstructor Summary | |
ContextDirective(EntryDirective[] entries)
Creation of a new file target. |
|
ContextDirective(String classname,
EntryDirective[] entries)
Creation of a new file target. |
Method Summary | |
String |
getClassname()
Return the classname of the context implementation to use. |
EntryDirective |
getEntryDirective(String key)
Return a named entry. |
EntryDirective[] |
getEntryDirectives()
Return the set of entry directives. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextDirective(EntryDirective[] entries)
entries
- the set of entry descriptorspublic ContextDirective(String classname, EntryDirective[] entries)
classname
- the context implementation classentries
- the set of entry descriptorsMethod Detail |
public String getClassname()
public EntryDirective[] getEntryDirectives()
public EntryDirective getEntryDirective(String key)
key
- the context entry key
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |