notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1290 - in trunk/main/central/src/docs/transit: concepts parts parts/classpath parts/info
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1290 - in trunk/main/central/src/docs/transit: concepts parts parts/classpath parts/info
- Date: Wed, 29 Mar 2006 07:20:55 +0200
Author: mcconnell
Date: 2006-03-29 07:20:08 +0200 (Wed, 29 Mar 2006)
New Revision: 1290
Modified:
trunk/main/central/src/docs/transit/concepts/plugins.xml
trunk/main/central/src/docs/transit/parts/classpath/index.xml
trunk/main/central/src/docs/transit/parts/index.xml
trunk/main/central/src/docs/transit/parts/info/index.xml
Log:
housekeeping
Modified: trunk/main/central/src/docs/transit/concepts/plugins.xml
===================================================================
--- trunk/main/central/src/docs/transit/concepts/plugins.xml 2006-03-29
05:06:57 UTC (rev 1289)
+++ trunk/main/central/src/docs/transit/concepts/plugins.xml 2006-03-29
05:20:08 UTC (rev 1290)
@@ -100,7 +100,7 @@
<source>
Repository repository = Transit.getInstance().getRepository();
ClassLoader parent = getClass().getClassLoader();
- URI uri = new URI(
"artifact:plugin:mycompany/thisproject/hello-impl#1.4.1" );
+ URI uri = new URI( "artifact:part:mycompany/thisproject/hello-impl#1.4.1"
);
Object[] args = new Object[] { "Hello, World!" };
Object plugin = repository.getPlugin( parent, uri, args );
if( plugin instanceof Hello )
@@ -124,14 +124,17 @@
</p>
<pre><![CDATA[
+<?xml version="1.0"?>
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE plugin PUBLIC "-//DPML//DTD Standard Plugin Version 1.0//EN"
"http://download.dpml.net/dtds/plugin_1_0.dtd" >
+<part xmlns="artifact:xsd:dpml/lang/dpml-part#1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<plugin version="1.0.0">
- <strategy class="net.dpml.transit.StandardHandler">
- <property name="project.plugin.class"
value="net.dpml.transit.console.TransitConsoleHandler"/>
- </strategy>
+ <info title="Example">
+ <description>An example plugin.</description>
+ </info>
+
+ <plugin class="HelloImpl">
+
<classpath>
<public>
<uri>artifact:jar:mycompany/thisproject/hello-api#1.4.1</uri>
@@ -140,7 +143,9 @@
<uri>artifact:jar:mycompany/thisproject/hello-impl#1.4.1</uri>
</private>
</classpath>
-</plugin>
+
+</part>
+
]]></pre>
<p>
Now, the beauty of Transit is that IF the hello-api artifact is
present
Modified: trunk/main/central/src/docs/transit/parts/classpath/index.xml
===================================================================
--- trunk/main/central/src/docs/transit/parts/classpath/index.xml
2006-03-29 05:06:57 UTC (rev 1289)
+++ trunk/main/central/src/docs/transit/parts/classpath/index.xml
2006-03-29 05:20:08 UTC (rev 1290)
@@ -68,31 +68,29 @@
<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-builder#SNAPSHOT</uri>
- <uri>artifact:jar:dpml/metro/dpml-metro-runtime#SNAPSHOT</uri>
- </private>
- </classpath>
-]]>
+<![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-builder#SNAPSHOT</uri>
+ <uri>artifact:jar:dpml/metro/dpml-metro-runtime#SNAPSHOT</uri>
+ </private>
+</classpath>]]>
</source>
</section>
Modified: trunk/main/central/src/docs/transit/parts/index.xml
===================================================================
--- trunk/main/central/src/docs/transit/parts/index.xml 2006-03-29 05:06:57
UTC (rev 1289)
+++ trunk/main/central/src/docs/transit/parts/index.xml 2006-03-29 05:20:08
UTC (rev 1290)
@@ -77,8 +77,10 @@
<part xmlns="artifact:xsd:dpml/lang/dpml-part#1.0">
- <info title="Untitled">
- <description></description>
+ <info title="DPML Metro Runtime">
+ <description>
+ Runtime container for the Metro platform.
+ </description>
</info>
<plugin class="net.dpml.metro.runtime.CompositionController"/>
Modified: trunk/main/central/src/docs/transit/parts/info/index.xml
===================================================================
--- trunk/main/central/src/docs/transit/parts/info/index.xml 2006-03-29
05:06:57 UTC (rev 1289)
+++ trunk/main/central/src/docs/transit/parts/info/index.xml 2006-03-29
05:20:08 UTC (rev 1290)
@@ -27,13 +27,12 @@
<p>Example of an ninfo element declaration:</p>
<source>
-<![CDATA[
- <info title="ACME Widget">
- <description>
- The ACME Widget is a generalized factory for
- the production of Gizmos.
- </description>
- </info>]]>
+<![CDATA[<info title="ACME Widget">
+ <description>
+ The ACME Widget is a generalized factory for
+ the production of Gizmos.
+ </description>
+</info>]]>
</source>
</section>
- r1290 - in trunk/main/central/src/docs/transit: concepts parts parts/classpath parts/info, mcconnell at BerliOS, 03/29/2006
Archive powered by MHonArc 2.6.24.