cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Actual implementation of passthrough
Date Tue, 31 Aug 2004 10:00:08 GMT

If the @passthrough attribute is to be put in the <pipelines> section of 
the mounted sitemap, it seems easy: make the PipelinesNodeBuilder set a 
passthrough variable in the PipelinesNode, and have the PipelinesNode 
tell or not the last PipelineNode if it has to stop:

     public void setChildren(ProcessingNode[] nodes) {
         // Mark the last pipeline so that it can throw a
         //    ResourceNotFoundException
         //-> put an if() here
           ((PipelineNode)nodes[nodes.length - 1]).setLast(true);
         //
         super.setChildren(nodes);
     }

The point is that it makes sense for the mount node to set it, but I'm 
not sure which is the preferred way in the TreeProcessor to pass that 
info from the MountNodeBuilder to the PipelinesNode.

Suggestions?

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message