notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1918 - trunk/central/site/src/docs/metro/component/directive
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1918 - trunk/central/site/src/docs/metro/component/directive
- Date: Sun, 18 Mar 2007 12:49:11 +0100
Author: mcconnell
Date: 2007-03-18 12:49:10 +0100 (Sun, 18 Mar 2007)
New Revision: 1918
Modified:
trunk/central/site/src/docs/metro/component/directive/context.xml
trunk/central/site/src/docs/metro/component/directive/index.xml
trunk/central/site/src/docs/metro/component/directive/parts.xml
Log:
more docs
Modified: trunk/central/site/src/docs/metro/component/directive/context.xml
===================================================================
--- trunk/central/site/src/docs/metro/component/directive/context.xml
2007-03-18 04:48:51 UTC (rev 1917)
+++ trunk/central/site/src/docs/metro/component/directive/context.xml
2007-03-18 11:49:10 UTC (rev 1918)
@@ -80,16 +80,6 @@
</section>
- <section name="Technical Notes">
-
- <p>
- The context descriptor class provides support for the declaration of
- an alternative context class hewever this feature is not currently
- supporting within the runtime.
- </p>
-
- </section>
-
</body>
</document>
Modified: trunk/central/site/src/docs/metro/component/directive/index.xml
===================================================================
--- trunk/central/site/src/docs/metro/component/directive/index.xml
2007-03-18 04:48:51 UTC (rev 1917)
+++ trunk/central/site/src/docs/metro/component/directive/index.xml
2007-03-18 11:49:10 UTC (rev 1918)
@@ -11,26 +11,40 @@
<section name="Component Directives">
+ <p>
+ A <a href="component.html">component directive</a> defines a component
deployment solution. Technically
+ speaking a directive is expressed as part <a
href="../../parts/strategy/index.html">strategy</a>
+ defintion encapsulating solution data for the construction of a
component context
+ model and a component internal structure. The XML defintion is used
to establish
+ internal datatypes, which in turn are used to establish the initial
state of a
+ component model.
+ </p>
+
<subsection name="Namespace">
<pre>dpml:metro</pre>
</subsection>
- <subsection name="Description">
+ <subsection name="Sample Component Directive">
<p>
- The <a href="component.html"><tt><component></tt></a> element
defines a
- part deployment strategy. It identifies the Java class, allows for
the
- declaration of policies concerning lifestyle, collection, and
activation
- semantics, provides the framework for the supply of data to a
component
- <a href="context.html"><tt><context></tt></a>, and provides
the
- framework for the declaration of <a href="parts.html">
- <tt><parts></tt></a> defining the component structure .
+ The following sample part XML file contains a component directive
+ as the part strategy definition.
</p>
-
+<pre>
+<part xmlns="dpml:part">
+ <info/>
+ <font color="darkred"><component xmlns="dpml:metro" name="demo"
class="org.acme.Demo"/></font>
+ <classpath>
+ <private>
+ <uri>artifact:jar:org/acme/acme-hello#1.0.3</uri>
+ </private>
+ </classpath>
+</part>
+</pre>
</subsection>
-
+
</section>
</body>
Modified: trunk/central/site/src/docs/metro/component/directive/parts.xml
===================================================================
--- trunk/central/site/src/docs/metro/component/directive/parts.xml
2007-03-18 04:48:51 UTC (rev 1917)
+++ trunk/central/site/src/docs/metro/component/directive/parts.xml
2007-03-18 11:49:10 UTC (rev 1918)
@@ -33,18 +33,25 @@
</section>
- <!--
<section name="Example">
<p>
- The following component defines an HHTP server deployment profile.
+ The following XML fragment demonstrates a component directive
containing a single nested part.
</p>
-<source><![CDATA[
-]]></source>
+<pre>
+ <component xmlns="dpml:metro" name="demo" class="org.acme.Demo">
+ <font color="darkred"><parts></font>
+ <component key="widget" name="widget" class="org.acme.Widget">
+ <context>
+ <entry key="color" method="BLUE"/>
+ </context>
+ </component>
+ <font color="darkred"></parts></font>
+ </component>
+</pre>
</section>
- -->
</body>
- r1918 - trunk/central/site/src/docs/metro/component/directive, mcconnell at BerliOS, 03/18/2007
Archive powered by MHonArc 2.6.24.