In Merlin Assembly there is an xinfo description
http://jakarta.apache.org/avalon/merlin/assembly.html
In ContainerKit we have a similar file in the examples.
Now the differrences are trivial, here is the Merlin assembly type xinfo
compared to the containerkit example:
-<type>
+<component-info>
<component>
<name>my-component</name>
<version>1.2.1</version>
<attributes>
<attribute key="avalon:display-name-i18n" value="display-name"/>
<attribute key="avalon:lifestyle" value="THREAD_SAFE"/>
</attributes>
</component>
- <loggers>
- <logger name="store"/>
- <logger name="store.cache"/>
- <logger name="verifier"/>
- </loggers>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(IMHO loggers should not be specified by the Component, it breaks IOC)
<context type="MyContextInterface">
<entry key="base" type="java.io.File"/>
<entry key="mode" type="java.lang.Object" optional="TRUE"/>
</context>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(This is consistent with what I've said, ie spacify the keys that are
not Avalon standard like the ones being discussed)
<services>
<service>
- <reference type="SimpleService" version="3.2">
+ <service-ref type="SimpleService" version="3.2"/>
<attributes>
</attributes>
</service>
- </services>
<dependencies>
<dependency optional="FALSE">
<role>my-transformer</role>
- <reference type="org.apache.cocoon.api.Transformer" version="1.1"/>
+ <service-ref type="org.apache.cocoon.api.Transformer" version="1.1"/>
<attributes>
</attributes>
</dependency>
</dependencies>
- <phases>
- <phase>
- <reference type="org.apache.security.Securable"/>
- </phase>
- <phase>
- <reference type="org.apache.db.Persistable"/>
- </phase>
- </phases>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(this should be specified, I would prefer "lifecycle" as a container
element, but it can be called "ratsass" too ;-)
- <extensions>
- <extension>
- <reference type="org.apache.excalibur.playground.DemoExtension"/>
- <attributes>
- <attribute key="status" value="experimental"/>
- </attributes>
- </extension>
- </extensions>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(This is Merlin specific, no?)
- </type>
+</component-info>
Have I forgotten anything?
*What's* the problem then???
--
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>