You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by hl...@apache.org on 2004/08/10 15:19:25 UTC
cvs commit: jakarta-hivemind/examples/src/descriptor/META-INF panorama.startup.xml
hlship 2004/08/10 06:19:25
Modified: examples/src/documentation/content/xdocs/hivemind-examples
panorama.xml
examples/src/descriptor/META-INF panorama.startup.xml
Log:
Cleanup XML in the examples, and adjust the Panorama example to use the revised hivemind.Startup configuration point.
Revision Changes Path
1.6 +1 -1 jakarta-hivemind/examples/src/documentation/content/xdocs/hivemind-examples/panorama.xml
Index: panorama.xml
===================================================================
RCS file: /home/cvs/jakarta-hivemind/examples/src/documentation/content/xdocs/hivemind-examples/panorama.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- panorama.xml 9 Aug 2004 14:53:45 -0000 1.5
+++ panorama.xml 10 Aug 2004 13:19:24 -0000 1.6
@@ -214,7 +214,7 @@
</service-point>
<contribution id="hivemind.Startup">
- <service service-id="Startup"/>
+ <startup object="service:Startup"/>
</contribution>]]></source>
1.4 +78 -74 jakarta-hivemind/examples/src/descriptor/META-INF/panorama.startup.xml
Index: panorama.startup.xml
===================================================================
RCS file: /home/cvs/jakarta-hivemind/examples/src/descriptor/META-INF/panorama.startup.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- panorama.startup.xml 9 Aug 2004 14:53:47 -0000 1.3
+++ panorama.startup.xml 10 Aug 2004 13:19:24 -0000 1.4
@@ -6,7 +6,7 @@
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@@ -17,78 +17,82 @@
<module id="panorama.startup" version="1.0.0">
- Startup logic for Panorama.
+ Startup logic for Panorama.
+
+ <schema id="Tasks">
+ Defines tasks that can be executed by a task executor service.
- <schema id="Tasks">
- Defines tasks that can be executed by a task executor service.
-
- <element name="task">
- A task which can invoke an object, or service, that implements Executable.
- <attribute name="title" required="true">
- A short, user presentable description of the task, used in logging output.
- </attribute>
-
- <attribute name="id" required="true">
- A unique id for the task, which is used to set the order of execution of all tasks.
- </attribute>
-
- <attribute name="before">
- A comma-seperated list of task ids whose execution should follow this task, or * to indicate that this task must run first.
- </attribute>
- <attribute name="after">
- A comma-seperated list of task ids whose execution should precede this tasks execution,
- or * to indicate that this task must run last.
- </attribute>
- <attribute name="executable" required="true" translator="object">
- An object or service that implements Executable.
- </attribute>
- <conversion class="com.panorama.startup.impl.Task"/>
- </element>
- <element name="static-task">
- A task which can invoke an object, or service, that implements Executable.
- <attribute name="title" required="true">
- A short, user presentable description of the task, used in logging output.
- </attribute>
- <attribute name="id" required="true">
- A unique id for the task, which is used to set the order of execution of all tasks.
- </attribute>
- <attribute name="before">
- A comma-seperated list of task ids whose execution should follow this task,
- or * to indicate that this task must run first.
- </attribute>
- <attribute name="after">
- A comma-seperated list of task ids whose execution should precede this tasks execution,
- or * to indicate that this task must run last.
- </attribute>
- <attribute name="class" required="true" translator="class">
- A class containing a public static method to execute.
- </attribute>
- <attribute name="method">
- The name of a public static method of the class; if not specified, 'init' is used.
- </attribute>
- <rules>
- <create-object class="com.panorama.startup.impl.Task"/>
- <invoke-parent method="addElement"/>
- <read-attribute attribute="id" property="id"/>
- <read-attribute attribute="title" property="title"/>
- <read-attribute attribute="before" property="before"/>
- <read-attribute attribute="after" property="after"/>
- <create-object class="com.panorama.startup.impl.ExecuteStatic"/>
- <invoke-parent method="setExecutable"/>
- <read-attribute attribute="class" property="targetClass"/>
- <read-attribute attribute="method" property="methodName"/>
- </rules>
- </element>
- </schema>
- <configuration-point id="Startup" schema-id="Tasks"/>
- <service-point id="Startup" interface="java.lang.Runnable">
- <invoke-factory>
- <construct class="com.panorama.startup.impl.TaskExecutor">
- <set-configuration configuration-id="Startup" property="tasks"/>
- </construct>
- </invoke-factory>
- </service-point>
- <contribution configuration-id="hivemind.Startup">
- <service service-id="Startup"/>
- </contribution>
+ <element name="task">
+ A task which can invoke an object, or service, that implements Executable.
+ <attribute name="title" required="true">
+ A short, user presentable description of the task, used in logging output.
+ </attribute>
+
+ <attribute name="id" required="true">
+ A unique id for the task, which is used to set the order of execution of all tasks.
+ </attribute>
+
+ <attribute name="before">
+ A comma-seperated list of task ids whose execution should follow this task, or * to indicate that this task must run first.
+ </attribute>
+ <attribute name="after">
+ A comma-seperated list of task ids whose execution should precede this tasks execution,
+ or * to indicate that this task must run last.
+ </attribute>
+ <attribute name="executable" required="true" translator="object">
+ An object or service that implements Executable.
+ </attribute>
+ <conversion class="com.panorama.startup.impl.Task"/>
+ </element>
+ <element name="static-task">
+ A task which can invoke an object, or service, that implements Executable.
+ <attribute name="title" required="true">
+ A short, user presentable description of the task, used in logging output.
+ </attribute>
+ <attribute name="id" required="true">
+ A unique id for the task, which is used to set the order of execution of all tasks.
+ </attribute>
+ <attribute name="before">
+ A comma-seperated list of task ids whose execution should follow this task,
+ or * to indicate that this task must run first.
+ </attribute>
+ <attribute name="after">
+ A comma-seperated list of task ids whose execution should precede this tasks execution,
+ or * to indicate that this task must run last.
+ </attribute>
+ <attribute name="class" required="true" translator="class">
+ A class containing a public static method to execute.
+ </attribute>
+ <attribute name="method">
+ The name of a public static method of the class; if not specified, 'init' is used.
+ </attribute>
+ <rules>
+ <create-object class="com.panorama.startup.impl.Task"/>
+ <invoke-parent method="addElement"/>
+ <read-attribute attribute="id" property="id"/>
+ <read-attribute attribute="title" property="title"/>
+ <read-attribute attribute="before" property="before"/>
+ <read-attribute attribute="after" property="after"/>
+ <create-object class="com.panorama.startup.impl.ExecuteStatic"/>
+ <invoke-parent method="setExecutable"/>
+ <read-attribute attribute="class" property="targetClass"/>
+ <read-attribute attribute="method" property="methodName"/>
+ </rules>
+ </element>
+ </schema>
+
+ <configuration-point id="Startup" schema-id="Tasks"/>
+
+ <service-point id="Startup" interface="java.lang.Runnable">
+ <invoke-factory>
+ <construct class="com.panorama.startup.impl.TaskExecutor">
+ <set-configuration configuration-id="Startup" property="tasks"/>
+ </construct>
+ </invoke-factory>
+ </service-point>
+
+ <contribution configuration-id="hivemind.Startup">
+ <startup object="service:Startup"/>
+ </contribution>
+
</module>
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org