donaldp 2002/09/07 22:22:07
Modified: containerkit/src/doc example.xml
Log:
Update to latest version
Revision Changes Path
1.10 +11 -34 jakarta-avalon-excalibur/containerkit/src/doc/example.xml
Index: example.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/doc/example.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- example.xml 8 Sep 2002 05:02:17 -0000 1.9
+++ example.xml 8 Sep 2002 05:22:07 -0000 1.10
@@ -18,12 +18,7 @@
<!--
Defintion of the component descriptor.
-->
- <component>
-
- <!-- the name of the component (character restriction appply) -->
-
- <name>my-component</name>
-
+ <component name="my-component" type="org.apache.avalon.MyComponent" >
<!-- the set of attribibutes associated with the type
(attribute names and values are examples only) -->
@@ -38,7 +33,6 @@
The "type" attribute is the name of an interface derived from the default
contenxt interface org.apache.avalon.framework.context.Context
-->
-
<context type="MyContextInterface">
<!--
Declaration of an entry in a context object, the "key" is
@@ -63,12 +57,10 @@
-->
<services>
-
<!--
The service type is the classname of an interface.
-->
- <service>
- <service-ref type="SimpleService"/>
+ <service type="SimpleService">
<attributes>
<!--
Service type attributes go here.
@@ -79,32 +71,19 @@
</services>
-
<!--
Declaration of the set of dependecies that this component type has on
- component suppliers. Dependecy declarations define the role name name
+ component suppliers. Dependecy declarations define the key name
that a consumer component will use to access a service via a service
- or component manager. The service element identifies a service
- descriptor that is publised by a potential supplier component.
+ manager.
-->
-
<dependencies>
-
- <!-- A dependecy declaration. -->
- <dependency optional="false">
- <!--
- The key name that the component will use as the argument to
- lookup. The default value is the value of the service type
- attribute listed below.
- -->
- <key>my-transformer</key>
-
- <!--
- service reference containing the classname of the service interface.
- -->
-
- <service-ref type="org.apache.cocoon.api.Transformer"/>
-
+ <!--
+ A dependecy declaration.
+ The key is the name the component uses to lookup
+ dependency. If unspecified it defaults to type.
+ -->
+ <dependency key="my-transformer" type="org.apache.cocoon.api.Transformer"
optional="false">
<!-- the set of attributes associated with the dependecy -->
<attributes>
<!--
@@ -113,7 +92,5 @@
-->
</attributes>
</dependency>
-
</dependencies>
-
</component-info>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>