|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
ProcessingNode |
build(org.apache.avalon.framework.configuration.Configuration tree)
Build a processing tree from a Configuration . |
ProcessingNode |
build(Source source)
|
ProcessingNodeBuilder |
createNodeBuilder(org.apache.avalon.framework.configuration.Configuration config)
|
java.util.List |
getDisposableNodes()
Return the list of ProcessingNodes part of this tree that are
Disposable . |
java.lang.String |
getFileName()
|
java.lang.String |
getLanguage()
Returns the language that is being built (e.g. |
java.lang.String |
getNamespace()
Get the namespace URI that builders should use to find their nodes. |
java.lang.String |
getParameterName()
Returns the name of the parameter element. |
TreeProcessor |
getProcessor()
|
ProcessingNode |
getRegisteredNode(java.lang.String name)
|
java.lang.String |
getTypeForStatement(org.apache.avalon.framework.configuration.Configuration statement,
java.lang.String role)
Get the type for a statement : it returns the 'type' attribute if present, and otherwhise the default hint for the ComponentSelector identified by
the role role . |
void |
registerNode(java.lang.String name,
ProcessingNode node)
Register a ProcessingNode under a given name.
|
void |
setProcessor(TreeProcessor processor)
|
ProcessingNode |
setupNode(ProcessingNode node,
org.apache.avalon.framework.configuration.Configuration config)
Setup a ProcessingNode by setting its location, calling all
the lifecycle interfaces it implements and giving it the parameter map if
it's a ParameterizableNode .
|
Method Detail |
public void setProcessor(TreeProcessor processor)
public TreeProcessor getProcessor()
public java.lang.String getLanguage()
public java.lang.String getParameterName()
public void registerNode(java.lang.String name, ProcessingNode node)
ProcessingNode
under a given name.
For example, ResourceNodeBuilder
stores here the ProcessingNode
s
it produces for use by sitemap pipelines. This allows to turn the tree into a graph.public ProcessingNode getRegisteredNode(java.lang.String name)
java.lang.IllegalStateException
- public ProcessingNodeBuilder createNodeBuilder(org.apache.avalon.framework.configuration.Configuration config) throws java.lang.Exception
public java.lang.String getNamespace()
public ProcessingNode build(org.apache.avalon.framework.configuration.Configuration tree) throws java.lang.Exception
Configuration
.public ProcessingNode build(Source source) throws java.lang.Exception
public java.lang.String getFileName()
public java.util.List getDisposableNodes()
ProcessingNodes
part of this tree that are
Disposable
. Care should be taken to properly dispose them before
trashing the processing tree.public ProcessingNode setupNode(ProcessingNode node, org.apache.avalon.framework.configuration.Configuration config) throws java.lang.Exception
ProcessingNode
by setting its location, calling all
the lifecycle interfaces it implements and giving it the parameter map if
it's a ParameterizableNode
.
As a convenience, the node is returned by this method to allow constructs
like return treeBuilder.setupNode(new MyNode(), config)
.
public java.lang.String getTypeForStatement(org.apache.avalon.framework.configuration.Configuration statement, java.lang.String role) throws org.apache.avalon.framework.configuration.ConfigurationException
ComponentSelector
identified by
the role role
.org.apache.avalon.framework.configuration.ConfigurationException
- if the default type could not be found.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |