org.apache.cocoon.components.treeprocessor
Interface ProcessingNodeBuilder

All Superinterfaces:
org.apache.avalon.framework.component.Component
All Known Subinterfaces:
LinkedProcessingNodeBuilder
All Known Implementing Classes:
AbstractProcessingNodeBuilder

public interface ProcessingNodeBuilder
extends org.apache.avalon.framework.component.Component

A ProcessingNode builder.

Lifecycle information : a TreeBuilder can be recycled and used to build several Processors, each one defining a different ComponentManager. As a consequence, a ProcessingNodeBuilder that needs access to the ComponentManager of the Processor being built must be not only Composable but also Recomposable.

Note however that being Recomposable doesn't forbid to be ThreadSafe since a ProcessingNodeBuilder is used by only one TreeBuilder at a time.

Version:
CVS $Id: ProcessingNodeBuilder.java,v 1.2.2.1 2002/07/15 14:42:48 cziegeler Exp $
Author:
Sylvain Wallez

Method Summary
 ProcessingNode buildNode(org.apache.avalon.framework.configuration.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(org.apache.avalon.framework.configuration.Configuration config)
                         throws java.lang.Exception
Build the ProcessingNode and its children from the given Configuration, and optionnaly register it in the tree builder for lookup by other LinkedProcessingNodeBuilders.


Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.