notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1371 - in trunk/main/central/src/docs: depot/library metro/directives/component
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1371 - in trunk/main/central/src/docs: depot/library metro/directives/component
- Date: Thu, 13 Apr 2006 06:27:23 +0200
Author: mcconnell
Date: 2006-04-13 06:27:10 +0200 (Thu, 13 Apr 2006)
New Revision: 1371
Modified:
trunk/main/central/src/docs/depot/library/projects.xml
trunk/main/central/src/docs/depot/library/resources.xml
trunk/main/central/src/docs/depot/library/types.xml
trunk/main/central/src/docs/metro/directives/component/parts.xml
Log:
doc corrections
Modified: trunk/main/central/src/docs/depot/library/projects.xml
===================================================================
--- trunk/main/central/src/docs/depot/library/projects.xml 2006-04-13
04:10:24 UTC (rev 1370)
+++ trunk/main/central/src/docs/depot/library/projects.xml 2006-04-13
04:27:10 UTC (rev 1371)
@@ -108,11 +108,10 @@
<section name="Example">
<p>
- The following examle project is taken from the DPML Metro module. The
project
+ The following example project is taken from the DPML Metro module. The
project
declares a basedir and the project name <tt>dpml-metro-runtime</tt>.
It declares
- that it produces two artifacts - a jar file and a plugin file. The
plugin type
- declaration includes some properties used by the associated build
system to
- construct a plugin definition (in this case the plugin factory
classname).
+ that it produces two artifacts - a jar file and a plugin part
definition. The part type
+ is an example of a plugin declaration concaining nexted constructor
arguments.
The project includes several dependencies collected under two groups -
the
first group maps to the projects <tt>RUNTIME</tt> dependencies and
second group maps
to <tt>TEST</tt> scoped dependencies. Within the runtime group the
dependencies
@@ -122,22 +121,38 @@
</p>
<source><![CDATA[
-<project name="dpml-metro-runtime" basedir="runtime">
- <types>
- <type id="jar"/>
- <part:plugin alias="true"
class="net.dpml.metro.runtime.CompositionController"/>
- </types>
- <dependencies>
- <include ref="dpml/util/dpml-logging-api" tag="public"/>
- <include key="dpml-metro-component" tag="protected"/>
- <include key="dpml-metro-model" tag="protected"/>
- <include key="dpml-state-impl"/>
- <include key="dpml-metro-runtime"/>
- </dependencies>
- <dependencies scope="test">
- <include ref="ant/ant-junit"/>
- </dependencies>
-</project>
+ <project name="dpml-metro-runtime" basedir="runtime">
+ <info>
+ <description title="Metro Container Runtime">
+ DPML Component management platform runtime container.
+ </description>
+ </info>
+ <types>
+ <type id="jar"/>
+ <part:plugin alias="true"
class="net.dpml.metro.runtime.CompositionController">
+ <part:param class="net.dpml.component.InitialContext"/>
+ </part:plugin>
+ </types>
+ <dependencies>
+ <runtime>
+ <include ref="dpml/util/dpml-logging-api" tag="public"/>
+ <include ref="dpml/metro/dpml-metro-component" tag="protected"/>
+ <include ref="dpml/metro/dpml-metro-model" tag="protected"/>
+ <include ref="dpml/metro/dpml-job-impl"/>
+ <include ref="dpml/metro/dpml-state-impl"/>
+ </runtime>
+ <test>
+ <include ref="ant/ant-junit"/>
+ </test>
+ </dependencies>
+ <filters>
+ <feature token="PART-HANDLER-URI" id="uri" type="part"/>
+ <feature token="STATE-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-state"/>
+ <feature token="PART-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-part"/>
+ <feature token="TYPE-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-type"/>
+ <feature token="COMPONENT-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-component"/>
+ </filters>
+ </project>
]]></source>
</section>
Modified: trunk/main/central/src/docs/depot/library/resources.xml
===================================================================
--- trunk/main/central/src/docs/depot/library/resources.xml 2006-04-13
04:10:24 UTC (rev 1370)
+++ trunk/main/central/src/docs/depot/library/resources.xml 2006-04-13
04:27:10 UTC (rev 1371)
@@ -109,15 +109,17 @@
<resource name="ant">
<properties>
- <property name="project.api.root"
value="${project.api.host}/${group}/${version}"/>
+ <property name="project.api.root"
value="${project.api.host}/${project.group}/${project.version}"/>
</properties>
<types>
<type id="jar"/>
</types>
<dependencies>
- <include key="ant-launcher"/>
- <include key="ant-trax"/>
- <include key="ant-xslp"/>
+ <runtime>
+ <include key="ant-launcher"/>
+ <include key="ant-trax"/>
+ <include key="ant-xslp"/>
+ </runtime>
</dependencies>
</resource>
@@ -126,8 +128,10 @@
<type id="jar"/>
</types>
<dependencies>
- <include key="ant"/>
- <include ref="junit/junit"/>
+ <runtime>
+ <include key="ant"/>
+ <include ref="junit/junit"/>
+ </runtime>
</dependencies>
</resource>
@@ -136,7 +140,9 @@
<type id="jar"/>
</types>
<dependencies>
- <include key="ant"/>
+ <runtime>
+ <include key="ant"/>
+ </runtime>
</dependencies>
</resource>
@@ -145,7 +151,9 @@
<type id="jar"/>
</types>
<dependencies>
- <include key="ant"/>
+ <runtime>
+ <include key="ant"/>
+ </runtime>
</dependencies>
</resource>
Modified: trunk/main/central/src/docs/depot/library/types.xml
===================================================================
--- trunk/main/central/src/docs/depot/library/types.xml 2006-04-13 04:10:24
UTC (rev 1370)
+++ trunk/main/central/src/docs/depot/library/types.xml 2006-04-13 04:27:10
UTC (rev 1371)
@@ -74,8 +74,10 @@
<type id="jar"/>
</types>
<dependencies>
- <include key="ant"/>
- <include ref="junit/junit"/>
+ <runtime>
+ <include key="ant"/>
+ <include ref="junit/junit"/>
+ </runtime>
</dependencies>
</resource>
]]></source>
@@ -87,33 +89,33 @@
</p>
<source><![CDATA[
- <project name="dpml-metro-runtime" basedir="runtime">
- <types>
- <type id="jar"/>
- <part:plugin alias="true"
class="net.dpml.metro.runtime.CompositionController">
- <part:param class="net.dpml.component.InitialContext"/>
- </part:plugin>
- </types>
- <dependencies>
- <runtime>
- <include ref="dpml/util/dpml-logging-api" tag="public"/>
- <include ref="dpml/metro/dpml-metro-component" tag="protected"/>
- <include ref="dpml/metro/dpml-metro-model" tag="protected"/>
- <include ref="dpml/metro/dpml-job-impl"/>
- <include ref="dpml/metro/dpml-state-impl"/>
- </runtime>
- <test>
- <include ref="ant/ant-junit"/>
- </test>
- </dependencies>
- <filters>
- <feature token="PART-HANDLER-URI" id="uri" type="part"/>
- <feature token="STATE-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-state"/>
- <feature token="PART-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-part"/>
- <feature token="TYPE-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-type"/>
- <feature token="COMPONENT-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-component"/>
- </filters>
- </project>
+<project name="dpml-metro-runtime" basedir="runtime">
+ <types>
+ <type id="jar"/>
+ <part:plugin alias="true"
class="net.dpml.metro.runtime.CompositionController">
+ <part:param class="net.dpml.component.InitialContext"/>
+ </part:plugin>
+ </types>
+ <dependencies>
+ <runtime>
+ <include ref="dpml/util/dpml-logging-api" tag="public"/>
+ <include ref="dpml/metro/dpml-metro-component" tag="protected"/>
+ <include ref="dpml/metro/dpml-metro-model" tag="protected"/>
+ <include ref="dpml/metro/dpml-job-impl"/>
+ <include ref="dpml/metro/dpml-state-impl"/>
+ </runtime>
+ <test>
+ <include ref="ant/ant-junit"/>
+ </test>
+ </dependencies>
+ <filters>
+ <feature token="PART-HANDLER-URI" id="uri" type="part"/>
+ <feature token="STATE-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-state"/>
+ <feature token="PART-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-part"/>
+ <feature token="TYPE-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-type"/>
+ <feature token="COMPONENT-XSD-URI" id="uri" type="xsd"
ref="dpml/lang/dpml-component"/>
+ </filters>
+</project>
]]></source>
</section>
Modified: trunk/main/central/src/docs/metro/directives/component/parts.xml
===================================================================
--- trunk/main/central/src/docs/metro/directives/component/parts.xml
2006-04-13 04:10:24 UTC (rev 1370)
+++ trunk/main/central/src/docs/metro/directives/component/parts.xml
2006-04-13 04:27:10 UTC (rev 1371)
@@ -41,95 +41,95 @@
</p>
<source><![CDATA[
- <component xmlns="artifact:xsd:dpml/lang/dpml-component#1.0"
- type="net.dpml.http.Server"
- alias="true">
-
- <parts>
-
- <!--
- Add a select channel connector to 8080.
- -->
- <component key="plain" type="net.dpml.http.SelectChannelConnector">
- <context>
- <entry key="port" value="8080"/>
- <entry key="maxIdleTime" value="50000"/>
- <entry key="acceptors" value="10"/>
- </context>
- </component>
-
- <!--
- Add a SSL connector to 8443.
- -->
- <component key="ssl" type="net.dpml.http.SslSocketConnector">
- <context>
- <entry key="port" value="8443"/>
- <entry key="maxIdleTime" value="30000"/>
- <entry key="keystore"
value="local:keystore:dpml/planet/http/jetty"/>
- <entry key="password"
value="OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4"/>
- <entry key="keyPassword" value="OBF:1u2u1wml1z7s1z7a1wnl1u2g"/>
- </context>
- </component>
-
- <!--
- Add a user realm.
- -->
- <component key="realm" type="net.dpml.http.HashUserRealm">
- <context>
- <entry key="name" value="Test Realm"/>
- <entry key="URI"
value="local:properties:dpml/planet/http/realm"/>
- </context>
- </component>
-
- <!--
- Add a web application.
- -->
- <component key="webapp" type="net.dpml.http.WebAppContextHandler">
- <context>
- <entry key="contextPath" value="/"/>
- <entry key="war"
value="link:war:dpml/planet/http/dpml-http-app"/>
- </context>
- </component>
-
- <!--
- Creation of a HTTP server configured to present static content in
- the ${dpml.share}/docs directory.
- -->
- <component key="context" type="net.dpml.http.ResourceContextHandler">
- <context>
- <entry key="resourceBase" value="${dpml.share}/docs"/>
- <entry key="contextPath" value="/docs"/>
- </context>
- </component>
-
- <!--
- Add an experimental servlet context.
- (Need to add context cloassloader configuration but this requires
- per-component threads - currently limited to classes declared within
- the part classloader).
- -->
- <component key="servlets" type="net.dpml.http.ServletContextHandler">
- <context>
- <entry key="resourceBase" value="${dpml.data}"/>
- <entry key="contextPath" value="/data"/>
- <entry key="servletHolders">
- <param class="net.dpml.http.ServletHolder">
- <param value="data"/>
- <param value="org.mortbay.jetty.servlet.DefaultServlet"/>
- </param>
- </entry>
- <entry key="servletEntries">
- <param class="net.dpml.http.ServletEntry">
- <param value="data"/>
- <param value="/"/>
- </param>
- </entry>
- </context>
- </component>
-
- </parts>
-
- </component>]]></source>
+<component xmlns="artifact:xsd:dpml/lang/dpml-component#1.0"
+ type="net.dpml.http.Server"
+ alias="true">
+
+ <parts>
+
+ <!--
+ Add a select channel connector to 8080.
+ -->
+ <component key="plain" type="net.dpml.http.SelectChannelConnector">
+ <context>
+ <entry key="port" value="8080"/>
+ <entry key="maxIdleTime" value="50000"/>
+ <entry key="acceptors" value="10"/>
+ </context>
+ </component>
+
+ <!--
+ Add a SSL connector to 8443.
+ -->
+ <component key="ssl" type="net.dpml.http.SslSocketConnector">
+ <context>
+ <entry key="port" value="8443"/>
+ <entry key="maxIdleTime" value="30000"/>
+ <entry key="keystore" value="local:keystore:dpml/planet/http/jetty"/>
+ <entry key="password" value="OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4"/>
+ <entry key="keyPassword" value="OBF:1u2u1wml1z7s1z7a1wnl1u2g"/>
+ </context>
+ </component>
+
+ <!--
+ Add a user realm.
+ -->
+ <component key="realm" type="net.dpml.http.HashUserRealm">
+ <context>
+ <entry key="name" value="Test Realm"/>
+ <entry key="URI" value="local:properties:dpml/planet/http/realm"/>
+ </context>
+ </component>
+
+ <!--
+ Add a web application.
+ -->
+ <component key="webapp" type="net.dpml.http.WebAppContextHandler">
+ <context>
+ <entry key="contextPath" value="/"/>
+ <entry key="war" value="link:war:dpml/planet/http/dpml-http-app"/>
+ </context>
+ </component>
+
+ <!--
+ Creation of a HTTP server configured to present static content in
+ the ${dpml.share}/docs directory.
+ -->
+ <component key="context" type="net.dpml.http.ResourceContextHandler">
+ <context>
+ <entry key="resourceBase" value="${dpml.share}/docs"/>
+ <entry key="contextPath" value="/docs"/>
+ </context>
+ </component>
+
+ <!--
+ Add an experimental servlet context.
+ (Need to add context cloassloader configuration but this requires
+ per-component threads - currently limited to classes declared within
+ the part classloader).
+ -->
+ <component key="servlets" type="net.dpml.http.ServletContextHandler">
+ <context>
+ <entry key="resourceBase" value="${dpml.data}"/>
+ <entry key="contextPath" value="/data"/>
+ <entry key="servletHolders">
+ <param class="net.dpml.http.ServletHolder">
+ <param value="data"/>
+ <param value="org.mortbay.jetty.servlet.DefaultServlet"/>
+ </param>
+ </entry>
+ <entry key="servletEntries">
+ <param class="net.dpml.http.ServletEntry">
+ <param value="data"/>
+ <param value="/"/>
+ </param>
+ </entry>
+ </context>
+ </component>
+
+ </parts>
+
+</component>]]></source>
</section>
- r1371 - in trunk/main/central/src/docs: depot/library metro/directives/component, mcconnell at BerliOS, 04/13/2006
Archive powered by MHonArc 2.6.24.