Skip to Content.
Sympa Menu

notify-dpml - r1896 - in trunk/central/site/src/docs/metro/parts: classpath strategy

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1896 - in trunk/central/site/src/docs/metro/parts: classpath strategy
  • Date: Mon, 12 Mar 2007 05:40:28 +0100

Author: mcconnell
Date: 2007-03-12 05:40:27 +0100 (Mon, 12 Mar 2007)
New Revision: 1896

Modified:
trunk/central/site/src/docs/metro/parts/classpath/index.xml
trunk/central/site/src/docs/metro/parts/strategy/index.xml
Log:


Modified: trunk/central/site/src/docs/metro/parts/classpath/index.xml
===================================================================
--- trunk/central/site/src/docs/metro/parts/classpath/index.xml 2007-03-12
03:29:17 UTC (rev 1895)
+++ trunk/central/site/src/docs/metro/parts/classpath/index.xml 2007-03-12
04:40:27 UTC (rev 1896)
@@ -85,31 +85,30 @@

<section name="Examples">

-<source>
-<![CDATA[<classpath>
- <public>
- <uri>artifact:jar:dpml/util/dpml-logging-api#SNAPSHOT</uri>
- </public>
- <protected>
- <uri>artifact:jar:dpml/metro/dpml-state-api#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/util/dpml-job-api#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/transit/dpml-transit-main#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/metro/dpml-metro-component#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/util/dpml-parameters-api#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/util/dpml-configuration-api#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/metro/dpml-metro-model#SNAPSHOT</uri>
- </protected>
- <private>
- <uri>artifact:jar:dpml/util/dpml-parameters-impl#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/util/dpml-configuration-impl#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/util/dpml-job-impl#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/metro/dpml-state-impl#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/depot/dpml-library#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/metro/dpml-metro-runtime#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/metro/dpml-metro-runtime#SNAPSHOT</uri>
- </private>
-</classpath>]]>
-</source>
+<source>&lt;part xmlns="dpml:part"&gt;
+
+ &lt;info title="DPML Depot Toolkit"&gt;
+ &lt;description>Antlib supporting Depot-based build
automation.&lt;/description&gt;
+ &lt;/info&gt;
+
+ &lt;component xmlns="dpml:metro" name="builder"
class="dpml.tools.impl.StandardBuilder"/&gt;
+
+ <font color="darkred">&lt;classpath&gt;
+ &lt;private&gt;
+
&lt;uri&gt;artifact:jar:dpml/transit/dpml-transit-main#2.0.0&lt;/uri&gt;
+ &lt;uri&gt;artifact:jar:dpml/metro/dpml-metro-part#2.0.0&lt;/uri&gt;
+ &lt;uri&gt;artifact:jar:dpml/depot/dpml-depot-library#2.0.0&lt;/uri&gt;
+ &lt;uri&gt;artifact:jar:dpml/util/dpml-util-cli#2.0.0&lt;/uri&gt;
+ &lt;uri&gt;artifact:jar:dpml/depot/dpml-depot-build#2.0.0&lt;/uri&gt;
+ &lt;uri&gt;artifact:jar:org/apache/ant/ant-launcher#1.7.0&lt;/uri&gt;
+ &lt;uri&gt;artifact:jar:org/apache/ant/ant#1.7.0&lt;/uri&gt;
+ &lt;uri&gt;artifact:jar:junit/junit#4.2&lt;/uri&gt;
+ &lt;uri&gt;artifact:jar:org/apache/ant/ant-junit#1.7.0&lt;/uri&gt;
+ &lt;uri&gt;artifact:jar:org/apache/ant/ant-trax#1.7.0&lt;/uri&gt;
+ &lt;uri&gt;artifact:jar:dpml/depot/dpml-depot-builder#2.0.0&lt;/uri&gt;
+ &lt;/private&gt;
+ &lt;/classpath&gt;</font>
+&lt;/part&gt;</source>

</section>


Modified: trunk/central/site/src/docs/metro/parts/strategy/index.xml
===================================================================
--- trunk/central/site/src/docs/metro/parts/strategy/index.xml 2007-03-12
03:29:17 UTC (rev 1895)
+++ trunk/central/site/src/docs/metro/parts/strategy/index.xml 2007-03-12
04:40:27 UTC (rev 1896)
@@ -46,7 +46,7 @@
concrete strategy defintion named <tt>resource</tt> (uder the
<tt>dpml:depot</tt>
namespace) is used by the Depot build system to define antlib
loading criteria.
If a foreign strategy element is declared the associated scheme is
resolved
- but locating a class implementing the
<tt>org.w3c.dom.ls.LSResourceResolver</tt>
+ buy locating a class implementing the
<tt>org.w3c.dom.ls.LSResourceResolver</tt>
service (via java.util.ServiceLoader). The runtime strategy handler
will be
resolved by reading a uri value from an attribute named
<tt>handler</tt>. The
uri is used to identify a plug-in part supporting the runtime
handling of the
@@ -57,44 +57,27 @@

</section>

- <!--
<section name="Examples">
+
+ <p>Example part definition using the <tt>&lt;<a
href="../../component/index.html">component</a>&gt;</tt> strategy:</p>
+
+<source>&lt;?xml version="1.0"?&gt;

- <p>
- The <tt>&lt;strategy&gt;</tt> element represents an abstract schema
type as
- such the <tt>xsi:type</tt> attribute is required in order to reference
a
- concrete strategy. In the following example the <tt>xsi:type</tt>
attribute
- is selecting the <tt>plugin</tt> schema type.
- </p>
+&lt;part xmlns="dpml:part"&gt;

-<source>
-<![CDATA[<strategy xsi:type="plugin"
class="dpml.tools.impl.StandardBuilder"/>]]>
-</source>
+ &lt;info/&gt;

- <p>
- The above strategy declaration is equivalent to the following:
- </p>
+ <font color="darkred">&lt;component xmlns="dpml:metro"
class="org.acme.Widget"/&gt;</font>

-<source>
-<![CDATA[<plugin class="dpml.tools.impl.StandardBuilder"/>]]>
-</source>
+ &lt;classpath&gt;
+ &lt;private&gt;
+ &lt;uri>artifact:jar:acme/widget/acme-widget#1.2.3&lt;/uri&gt;
+ &lt;/private&gt;
+ &lt;/classpath&gt;

- <p>
- The following example demonstrates the use of a foreign strategy
definition
- (qualified by a namespace uri):
- </p>
+&lt;/part&gt;</source>

-<source>
-<![CDATA[<component xmlns="dpml:metro"
- type="net.dpml.http.Server"
- collection="system"
- activation="system">
- ...
-</component>]]>
-</source>
-
</section>
- -->

</body>





  • r1896 - in trunk/central/site/src/docs/metro/parts: classpath strategy, mcconnell at BerliOS, 03/12/2007

Archive powered by MHonArc 2.6.24.

Top of Page