cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1195926 - in /cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli: PipelineCreateRule.java PipelinesRegistry.java
Date Tue, 01 Nov 2011 11:09:41 GMT
Author: simonetripodi
Date: Tue Nov  1 11:09:40 2011
New Revision: 1195926

URL: http://svn.apache.org/viewvc?rev=1195926&view=rev
Log:
the rule is now able to register a pipeline with a related id in the registry

Modified:
    cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineCreateRule.java
    cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelinesRegistry.java

Modified: cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineCreateRule.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineCreateRule.java?rev=1195926&r1=1195925&r2=1195926&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineCreateRule.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineCreateRule.java
Tue Nov  1 11:09:40 2011
@@ -75,7 +75,7 @@ final class PipelineCreateRule
     {
         Pipeline<SAXPipelineComponent> pipeline = getDigester().pop();
         PipelinesRegistry registry = getDigester().peek();
-        registry.
+        registry.addPipeline( id, pipeline );
     }
 
     public static class PipelineCreateRuleProvider

Modified: cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelinesRegistry.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelinesRegistry.java?rev=1195926&r1=1195925&r2=1195926&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelinesRegistry.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelinesRegistry.java
Tue Nov  1 11:09:40 2011
@@ -58,6 +58,11 @@ final class PipelinesRegistry
         return registry.get( defaultId );
     }
 
+    public void addPipeline( String id, Pipeline<SAXPipelineComponent> pipeline )
+    {
+        registry.put( id, pipeline );
+    }
+
     public Pipeline<SAXPipelineComponent> getPipeline( String id )
     {
         return registry.get( id );



Mime
View raw message