|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.metro.data.AbstractDirective net.dpml.metro.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>
Constructor Summary | |
ContextDirective()
Creation of a context directive. |
|
ContextDirective(PartReference[] entries)
Creation of a context directive |
|
ContextDirective(String classname,
PartReference[] entries)
Creation of a new file target. |
Method Summary | |
boolean |
equals(Object other)
Test if the supplied object is equal to this object. |
String |
getClassname()
Return the classname of the context implementation to use. |
PartReference[] |
getDirectives()
Return the set of entry directives. |
Directive |
getPartDirective(String key)
Return part defining the value for the requested entry. |
PartReference |
getPartReference(String key)
Return part reference defining the value for the requested entry. |
int |
hashCode()
Return the hashcode for the instance. |
Methods inherited from class net.dpml.metro.data.AbstractDirective |
getPartHandlerURI, setupURI |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextDirective()
public ContextDirective(PartReference[] entries)
entries
- the set of entry descriptorspublic ContextDirective(String classname, PartReference[] entries)
classname
- the context implementation classentries
- the set of entry descriptorsMethod Detail |
public String getClassname()
public PartReference[] getDirectives()
public PartReference getPartReference(String key)
key
- the context entry key
public Directive getPartDirective(String key)
key
- the context entry key
public boolean equals(Object other)
equals
in class AbstractDirective
other
- the object to compare with this instance
public int hashCode()
hashCode
in class AbstractDirective
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |