org.apache.cocoon.components.treeprocessor
Class NodeBuilderSelector

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.components.treeprocessor.NodeBuilderSelector
All Implemented Interfaces:
Configurable, Contextualizable, Initializable, Serviceable

public class NodeBuilderSelector
extends org.apache.cocoon.util.AbstractLogEnabled
implements Serviceable, Configurable, Initializable, Contextualizable

This is the selector used to select/create node builders.

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

Nested Class Summary
protected static class NodeBuilderSelector.BuilderInfo
           
 
Field Summary
protected  Map componentInfos
          Used to map roles to component infos.
protected  Context context
          The application context for components
protected  ServiceManager serviceManager
          The application context for components
protected  Map singletons
          All singletons.
 
Constructor Summary
NodeBuilderSelector()
           
 
Method Summary
 void configure(Configuration config)
           
 void contextualize(Context avalonContext)
           
protected  Object createComponent(NodeBuilderSelector.BuilderInfo info)
          Create a new component.
 Object getBuilder(String name)
           
 void initialize()
           
 void service(ServiceManager componentManager)
           
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceManager

protected ServiceManager serviceManager
The application context for components


context

protected Context context
The application context for components


componentInfos

protected final Map componentInfos
Used to map roles to component infos.


singletons

protected final Map singletons
All singletons.

Constructor Detail

NodeBuilderSelector

public NodeBuilderSelector()
Method Detail

contextualize

public void contextualize(Context avalonContext)
Specified by:
contextualize in interface Contextualizable
See Also:
Contextualizable.contextualize(Context)

service

public void service(ServiceManager componentManager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException
See Also:
Serviceable.service(ServiceManager)

configure

public void configure(Configuration config)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException
See Also:
Configurable.configure(Configuration)

initialize

public void initialize()
                throws Exception
Specified by:
initialize in interface Initializable
Throws:
Exception
See Also:
Initializable.initialize()

getBuilder

public Object getBuilder(String name)
                  throws Exception
Throws:
Exception

createComponent

protected Object createComponent(NodeBuilderSelector.BuilderInfo info)
                          throws Exception
Create a new component.

Throws:
Exception


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