Hi all, attached is a patch to add attributes from the configuration file to the context of ExcaliburComponentManager.
Regarding to http://marc.theaimsgroup.com/?l=avalon-dev&m=101439200608340&w=2 I have extented ECM to read a <context/>-section out of the config-file and add it to the current context. The context-section should look like <context> <!-- Adding a String-Attribute --> <entry name="attribute-name" value="attribute-value"/> <!-- Adding a specified Object-type with default constructor --> <entry name="attribute-name" type="classname"/> <!-- Adding a specified Object-type with String-constructor --> <entry name="attribute-name" value="attribute-value" type="classname"/> <!-- Adding a specified Object-type (with multiple-value-constructor) --> <entry name="attribute-name" type="classname"> <!-- Constructur-Value String --> <parameter value="constructor-value"> <!-- Constructur-Value specified Object-type with default constructor --> <parameter type="classname"> <!-- Constructur-Value specified Object-type or primitve with String constructor --> <parameter type="classname or primitve" value="contructor-value"> </entry> </context> In the value-attributes you can refer to already existing context-attributes through ${context-attribute}. I.e. <contex> <entry name="version" value="2.0"/> <entry name="release-info" type="java.io.File"> <parameter value="/usr/local/doc/${version}/release.html"/> </entry> </context> What do you think? Wolfram
ExcaliburComponentManager.diff
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>