commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nutty...@apache.org
Subject svn commit: r562534 - /commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/config/PipelineRuleSet.java
Date Fri, 03 Aug 2007 18:05:36 GMT
Author: nuttycom
Date: Fri Aug  3 11:05:36 2007
New Revision: 562534

URL: http://svn.apache.org/viewvc?view=rev&rev=562534
Log:
Added rules for configuration of lifecycle jobs.

Modified:
    commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/config/PipelineRuleSet.java

Modified: commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/config/PipelineRuleSet.java
URL: http://svn.apache.org/viewvc/commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/config/PipelineRuleSet.java?view=diff&rev=562534&r1=562533&r2=562534
==============================================================================
--- commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/config/PipelineRuleSet.java
(original)
+++ commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/config/PipelineRuleSet.java
Fri Aug  3 11:05:36 2007
@@ -22,9 +22,19 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+
 import org.apache.commons.beanutils.BeanUtils;
-import org.apache.commons.digester.*;
-import org.apache.commons.pipeline.*;
+import org.apache.commons.digester.AbstractObjectCreationFactory;
+import org.apache.commons.digester.CallMethodRule;
+import org.apache.commons.digester.Digester;
+import org.apache.commons.digester.ObjectCreationFactory;
+import org.apache.commons.digester.Rule;
+import org.apache.commons.digester.RuleSet;
+import org.apache.commons.digester.RuleSetBase;
+import org.apache.commons.pipeline.Pipeline;
+import org.apache.commons.pipeline.Stage;
+import org.apache.commons.pipeline.StageDriver;
+import org.apache.commons.pipeline.StageDriverFactory;
 import org.xml.sax.Attributes;
 
 /**
@@ -163,6 +173,11 @@
         digester.addObjectCreate("*/driverFactory", "org.apache.commons.pipeline.StageDriverFactory",
"className");
         digester.addSetProperties("*/driverFactory");
         digester.addSetNext("*/driverFactory", "setWrappedSDF", "org.apache.commons.pipeline.StageDriverFactory");
+        
+        //rules for adding lifecycle jobs
+        digester.addObjectCreate("*/pipeline/lifecycleJob", "org.apache.commons.pipeline.PipelineLifecycleJob",
"className");
+        digester.addSetProperties("*/pipeline/lifecycleJob");
+        digester.addSetNext("*/pipeline/lifecycleJob", "addLifecycleJob", "org.apache.commons.pipeline.PipelineLifecycleJob");
         
         //rules for setting an object property on the next-to-top object on the stack
         //similar to setNestedPropertiesRule



Mime
View raw message