org.apache.cocoon.components.treeprocessor
Class SimpleSelectorProcessingNode

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
          extended by org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
              extended by org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
                  extended by org.apache.cocoon.components.treeprocessor.SimpleSelectorProcessingNode
All Implemented Interfaces:
LogEnabled, ThreadSafe, ProcessingNode, Locatable
Direct Known Subclasses:
ActionSetNode, ActTypeNode, MatchNode, PreparableMatchNode, SelectNode, SwitchSelectNode

public abstract class SimpleSelectorProcessingNode
extends SimpleParentProcessingNode

Version:
CVS $Id: SimpleSelectorProcessingNode.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez

Field Summary
protected  String componentName
          The node component name (e.g. action name, selector name, etc)
protected  ComponentSelector selector
          Selector where to get components from
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
children
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
location
 
Fields inherited from interface org.apache.cocoon.components.treeprocessor.ProcessingNode
OBJECT_SOURCE_RESOLVER
 
Constructor Summary
SimpleSelectorProcessingNode(String componentName)
           
 
Method Summary
protected  Component getThreadSafeComponent()
          Tests if the component designated by this node using the selector and component name is ThreadSafe, and return it if true.
protected  Component getThreadSafeComponent(String name)
          Tests if the component designated by this node using the selector and component name is ThreadSafe, and return it if true.
 void setSelector(ComponentSelector selector)
           
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
hasChildren, invoke, setChildren
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes, invokeNodes
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
getLocation, getSourceResolver, setLocation
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentName

protected String componentName
The node component name (e.g. action name, selector name, etc)


selector

protected ComponentSelector selector
Selector where to get components from

Constructor Detail

SimpleSelectorProcessingNode

public SimpleSelectorProcessingNode(String componentName)
Method Detail

setSelector

public void setSelector(ComponentSelector selector)
                 throws ComponentException
Throws:
ComponentException

getThreadSafeComponent

protected Component getThreadSafeComponent()
                                    throws ComponentException
Tests if the component designated by this node using the selector and component name is ThreadSafe, and return it if true.

Note : this method must be called after setSelector().

Throws:
ComponentException

getThreadSafeComponent

protected Component getThreadSafeComponent(String name)
                                    throws ComponentException
Tests if the component designated by this node using the selector and component name is ThreadSafe, and return it if true.

Note : this method must be called after setSelector().

Throws:
ComponentException


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