|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.data.EntryDirective
org.apache.avalon.composition.data.ConstructorDirective
A entry descriptor declares the context entry import or creation criteria for a single context entry instance.
XML
A entry may contain either (a) a single nested import directive, or (b) a single param constructor directives.
<context> <!-- option (a) nested import --> <entry key="my-home-dir"> <include key="urn:avalon:home"/> </entry> <!-- option (b) param constructors --> <entry key="title"> <param>Lord of the Rings</> </entry> <entry key="home"> <param class="java.io.File">../home</param> </entry> </context>
ImportDirective
,
Parameter
,
ContextDirective
,
Serialized FormConstructor Summary | |
ConstructorDirective(String key,
Parameter[] parameters)
Creation of a new entry directive using a parameter. |
|
ConstructorDirective(String key,
String value)
Creation of a new entry directive using a constructor classname and single argument value. |
|
ConstructorDirective(String key,
String classname,
Parameter[] params)
Creation of a new entry directive using a parameter. |
|
ConstructorDirective(String key,
String classname,
String value)
Creation of a new entry directive using a constructor classname and single argument value. |
Method Summary | |
String |
getArgument()
Return the constructor single argument |
String |
getClassname()
Return the constructor classname |
Parameter[] |
getParameters()
Return the parameter directive if the mode is PARAM else null. |
Methods inherited from class org.apache.avalon.composition.data.EntryDirective |
getKey |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConstructorDirective(String key, String value)
key
- the entry keyvalue
- the single argument valuepublic ConstructorDirective(String key, String classname, String value)
key
- the entry keyclassname
- the classname of the entry implementationvalue
- the single argument valuepublic ConstructorDirective(String key, Parameter[] parameters)
key
- the entry keyparameters
- implementation class constructor parameter directivespublic ConstructorDirective(String key, String classname, Parameter[] params)
key
- the entry keyclassname
- the classname of the entry implementationparams
- implementation class constructor parameter directivesMethod Detail |
public String getClassname()
public Parameter[] getParameters()
public String getArgument()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |