You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by nu...@apache.org on 2006/10/17 22:17:02 UTC

svn commit: r465027 - /jakarta/commons/sandbox/pipeline/trunk/src/site/apt/config_digester.apt

Author: nuttycom
Date: Tue Oct 17 13:17:02 2006
New Revision: 465027

URL: http://svn.apache.org/viewvc?view=rev&rev=465027
Log:
Updated documentation with environment variable configuration

Modified:
    jakarta/commons/sandbox/pipeline/trunk/src/site/apt/config_digester.apt

Modified: jakarta/commons/sandbox/pipeline/trunk/src/site/apt/config_digester.apt
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/pipeline/trunk/src/site/apt/config_digester.apt?view=diff&rev=465027&r1=465026&r2=465027
==============================================================================
--- jakarta/commons/sandbox/pipeline/trunk/src/site/apt/config_digester.apt (original)
+++ jakarta/commons/sandbox/pipeline/trunk/src/site/apt/config_digester.apt Tue Oct 17 13:17:02 2006
@@ -24,6 +24,10 @@
   </branch>
   <listener/>
   <driverFactory/>
+  <env>
+    <value/>
+    <object/>
+  </env>
   <stage></stage>
   <feed>
     <value/>
@@ -34,9 +38,9 @@
 
   Attributes for each element are discussed in their respective subsections.
 
-* \<pipeline/\>
+* \<pipeline/\>\</pipeline\>
 
-  The \<pipeline/\> element is the root element of the document. It is used to
+  The \<pipeline\> element is the root element of the document. It is used to
 define primary pipeline that will be created. The root \<pipeline\> tag does not
 support any attributes by default; instances of the tag nested within \<branch\>
 tags support the following attributes:
@@ -50,7 +54,7 @@
               \<pipeline\> element is nested within a \<branch\> tag; required 
               in this case.
 
-* \<branch/\>
+* \<branch\>\</branch\>
 
   This tag is used to add a branch to a pipeline. The contents of this tag 
 should be one or more \<pipeline\> declarations. Branch pipelines added in this 
@@ -61,7 +65,7 @@
 file or in a separate file referred to by the <<<configURI>>> pipeline
 attribute.
 
-* \<listener className="" ... /\>
+* \<listener className="..." ... /\>
 
   The \<listener\> element is used to register a StageEventListener with the
 pipeline. This element supports any number of attributes, with the 
@@ -72,7 +76,7 @@
   [className] The class of the listener object to be created and registered
               with the pipeline. Required.
 
-* \<driverFactory className="" id="" .../\>
+* \<driverFactory className="..." id="..." .../\>
 
   The \<driverFactory\> element is used to create and configure a 
 StageDriverFactory that will be used to create StageDriver instances for stages
@@ -88,13 +92,42 @@
   [id]        The identifier used by the <<<driverFactoryId>>> attribute of the
               \<stage\> tag to refer to this factory.
 
-* \<stage className="" driverFactoryId="" ... \>\</stage\>
+* \<env\>\</env\>
+
+  The \<env\> element can be used to add global environment variable
+values to the pipeline by means of the \<value\> and \<object\>
+child tags. Variables assigned in this fashion will be accessible to any stage
+in the pipeline via the getEnv() method of the StageContext provided to the stage during 
+initialization. Use the \<value\> tag to add string-valued environment
+variables; use the \<object\> tag to create more complex objects. All
+environment variables are referred to by a string key.
+
+** \<value key="..."\>
+
+  A java.lang.String value containing to the body content of the tag 
+will be set as the value corresponding to the specified key.
+
+  [key]         The name used to refer to the newly created environment variable.
+
+** \<object key="..." className="..."\>
+
+  This tag is used to add arbitrary objects to the environment. It supports
+two attributes, <<<key>>> and <<<className>>>.  All other attributes are mapped to
+properties that are set on the created object, using standard Java bean naming
+conventions.
+
+  [key]         The name used to refer to the newly created environment variable.
+
+  [className]   The class of the object, which must supply a no-argument 
+                constructor.
+
+* \<stage className="..." driverFactoryId="..." ... \>\</stage\>
 
   A single stage is created, configured, and added to the parent pipeline using 
 this tag. Stages created in this manner are added to the pipeline in the order 
 that they occur in the configuration file. This tag supports two attributes, 
 <<<className>>> and <<<driverFactoryId>>>. All other attributes are mapped to 
-properties that are set on the created factory, using standard Java bean naming 
+properties that are set on the created stage object using standard Java bean naming 
 conventions.
 
   [className]       The class of the stage, which must supply a no-argument 
@@ -116,11 +149,11 @@
   This tag supports no attributes. A java.lang.String object representing the 
 body content of the tag will be fed to the first stage in the pipeline.
 
-** \<object\>
+** \<object className="..." \>
 
   This tag is used to feed arbitrary objects into the pipeline. It supports
 a single attribute, <<<className>>>.  All other attributes are mapped to 
-properties that are set on the created factory, using standard Java bean naming 
+properties that are set on the created object, using standard Java bean naming 
 conventions.
 
   [className] The class of the object to be created, which must supply a 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org