cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1195925 - /cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineCreateRule.java
Date Tue, 01 Nov 2011 11:08:24 GMT
Author: simonetripodi
Date: Tue Nov  1 11:08:24 2011
New Revision: 1195925

URL: http://svn.apache.org/viewvc?rev=1195925&view=rev
Log:
added a method to register a pipeline with a related id

Modified:
    cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineCreateRule.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=1195925&r1=1195924&r2=1195925&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:08:24 2011
@@ -34,16 +34,21 @@ final class PipelineCreateRule
     extends Rule
 {
 
+    private static final String ID = "id";
+
     private static final String TYPE = "type";
 
     private static final String ASYNC_CACHE = "async-cache";
 
     private static final String CACHING = "caching";
 
+    private String id;
+
     @Override
     public void begin( String namespace, String name, Attributes attributes )
         throws Exception
     {
+        id = attributes.getValue( ID );
         String type = attributes.getValue( TYPE );
 
         Pipeline<SAXPipelineComponent> pipeline;
@@ -64,6 +69,15 @@ final class PipelineCreateRule
         getDigester().push( pipeline );
     }
 
+    @Override
+    public void end( String namespace, String name )
+        throws Exception
+    {
+        Pipeline<SAXPipelineComponent> pipeline = getDigester().pop();
+        PipelinesRegistry registry = getDigester().peek();
+        registry.
+    }
+
     public static class PipelineCreateRuleProvider
         implements RuleProvider<PipelineCreateRule>
     {



Mime
View raw message