org.apache.cocoon.components.treeprocessor
Interface ProcessingNodeBuilder

All Known Subinterfaces:
LinkedProcessingNodeBuilder
All Known Implementing Classes:
AbstractProcessingNodeBuilder, ActNodeBuilder, AggregateNodeBuilder, CallNodeBuilder, GenerateNodeBuilder, RedirectToNodeBuilder, ScriptNodeBuilder, SerializeNodeBuilder, TransformNodeBuilder

public interface ProcessingNodeBuilder

A ProcessingNode builder.

A processing node builder is used to create the processing statements for a sitemap. A node builder can either be implemented as a singleton, using the ThreadSafe marker interface, or each time a builder is required a new instance is created. All builders are managed by the NodeBuilderSelector. A node builder can implement the following marker interfaces from Avalon: LogEnabled, Contextualizable, Initializable and Configurable. Other marker interfaces, like Recyclable, Poolable or Disposable are not supported! If the builder needs a service manager it can fetch this one from the tree builder.

Version:
$Id: ProcessingNodeBuilder.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Method Summary
 ProcessingNode buildNode(Configuration config)
          Build the ProcessingNode and its children from the given Configuration, and optionnaly register it in the tree builder for lookup by other LinkedProcessingNodeBuilders.
 void setBuilder(TreeBuilder builder)
          Set the builder for which we are building.
 

Method Detail

setBuilder

public void setBuilder(TreeBuilder builder)
Set the builder for which we are building.


buildNode

public ProcessingNode buildNode(Configuration config)
                         throws Exception
Build the ProcessingNode and its children from the given Configuration, and optionnaly register it in the tree builder for lookup by other LinkedProcessingNodeBuilders.

Throws:
Exception


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.