Skip to Content.
Sympa Menu

notify-dpml - r1923 - trunk/central/site/src/docs/metro/component/lifecycle

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: r1923 - trunk/central/site/src/docs/metro/component/lifecycle
  • Date: Mon, 19 Mar 2007 08:30:37 +0100

Author: mcconnell
Date: 2007-03-19 08:30:36 +0100 (Mon, 19 Mar 2007)
New Revision: 1923

Modified:
trunk/central/site/src/docs/metro/component/lifecycle/navigation.xml
trunk/central/site/src/docs/metro/component/lifecycle/state.xml
Log:
updates to state graph docs

Modified: trunk/central/site/src/docs/metro/component/lifecycle/navigation.xml
===================================================================
--- trunk/central/site/src/docs/metro/component/lifecycle/navigation.xml
2007-03-19 07:26:03 UTC (rev 1922)
+++ trunk/central/site/src/docs/metro/component/lifecycle/navigation.xml
2007-03-19 07:30:36 UTC (rev 1923)
@@ -29,7 +29,7 @@
<item name="Trigger" href="trigger/index.html"/>
<item name="Transition" href="transition.html"/>
<item name="Operation" href="operation.html"/>
- <item name="Interface" href="interface.html"/>
+ <!--<item name="Interface" href="interface.html"/>-->
</menu>

</body>

Modified: trunk/central/site/src/docs/metro/component/lifecycle/state.xml
===================================================================
--- trunk/central/site/src/docs/metro/component/lifecycle/state.xml
2007-03-19 07:26:03 UTC (rev 1922)
+++ trunk/central/site/src/docs/metro/component/lifecycle/state.xml
2007-03-19 07:30:36 UTC (rev 1923)
@@ -69,41 +69,33 @@

<section name="Example">

-<source><![CDATA[
-<?xml version="1.0"?>
-
-<type xmlns="link:xsd:dpml/metro/dpml-type#1.0">
-
- <info name="example"
- class="net.dpml.test.ExampleComponent"
- version="0.0.0"
- lifestyle="thread"
- collection="system"
- threadsafe="unknown"/>
-
- <services>
- <service class="net.dpml.test.ColorManager" version="1.0.0"/>
- </services>
-
- <context>
- <entry key="color" class="java.awt.Color" optional="false"/>
- </context>
-
- <state xmlns="link:xsd:dpml/metro/dpml-state#1.0">
- <trigger event="initialization">
- <transition name="init" target="available"/>
- </trigger>
- <state name="available">
- <trigger event="termination">
- <transition name="terminate" target="../terminated"/>
- </trigger>
- </state>
- <state name="terminated" terminal="true"/>
- </state>
-
-</type>
-]]></source>
+<pre>&lt;state xmlns="dpml:state"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;

+ &lt;trigger event="initialization"&gt;
+ &lt;transition name="start" target="started"&gt;
+ &lt;operation name="startup" method="start"/&gt;
+ &lt;/transition&gt;
+ &lt;/trigger&gt;
+
+ &lt;state name="started"&gt;
+ &lt;trigger event="termination"&gt;
+ &lt;apply id="stop"/&gt;
+ &lt;/trigger&gt;
+ &lt;transition name="stop" target="../stopped"&gt;
+ &lt;operation name="stop" method="stop"/&gt;
+ &lt;/transition&gt;
+ &lt;/state&gt;
+
+ &lt;state name="stopped"&gt;
+ &lt;transition name="start" target="../started"&gt;
+ &lt;operation name="start" method="start"/&gt;
+ &lt;/transition&gt;
+ &lt;/state&gt;
+
+&lt;/state&gt;</pre>
+
+
</section>

<section name="Technical Note">




  • r1923 - trunk/central/site/src/docs/metro/component/lifecycle, mcconnell at BerliOS, 03/19/2007

Archive powered by MHonArc 2.6.24.

Top of Page