org.apache.cocoon.components.treeprocessor
Class SimpleSelectorProcessingNode

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
              |
              +--org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
                    |
                    +--org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
                          |
                          +--org.apache.cocoon.components.treeprocessor.SimpleSelectorProcessingNode
All Implemented Interfaces:
org.apache.avalon.framework.logger.Loggable, ProcessingNode, org.apache.avalon.framework.thread.ThreadSafe
Direct Known Subclasses:
ActionSetNode, ActTypeNode, MatchNode, PreparableMatchNode, SelectNode

public abstract class SimpleSelectorProcessingNode
extends SimpleParentProcessingNode

Version:
CVS $Id: SimpleSelectorProcessingNode.java,v 1.1 2002/03/05 08:26:22 sylvain Exp $
Author:
Sylvain Wallez

Field Summary
protected  java.lang.String componentName
          The node component name (e.g. action name, selector name, etc)
protected  org.apache.avalon.framework.component.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(java.lang.String componentName)
           
 
Method Summary
protected  org.apache.avalon.framework.component.Component getThreadSafeComponent()
          Tests is the component designated by this node using the selector and component name is ThreadSafe, and return it if true.
protected  org.apache.avalon.framework.component.Component getThreadSafeComponent(java.lang.String name)
          Tests is the component designated by this node using the selector and component name is ThreadSafe, and return it if true.
 void setSelector(org.apache.avalon.framework.component.ComponentSelector selector)
           
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
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.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.components.treeprocessor.ProcessingNode
invoke
 

Field Detail

componentName

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

selector

protected org.apache.avalon.framework.component.ComponentSelector selector
Selector where to get components from
Constructor Detail

SimpleSelectorProcessingNode

public SimpleSelectorProcessingNode(java.lang.String componentName)
Method Detail

setSelector

public void setSelector(org.apache.avalon.framework.component.ComponentSelector selector)
                 throws org.apache.avalon.framework.component.ComponentException

getThreadSafeComponent

protected org.apache.avalon.framework.component.Component getThreadSafeComponent()
                                                                          throws org.apache.avalon.framework.component.ComponentException
Tests is 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().


getThreadSafeComponent

protected org.apache.avalon.framework.component.Component getThreadSafeComponent(java.lang.String name)
                                                                          throws org.apache.avalon.framework.component.ComponentException
Tests is 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().



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