|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static String |
ROLE
|
Method Summary | |
ProcessingNode |
build(Configuration config,
String location)
Build a processing tree from a Configuration object holding the sitemap program. |
ProcessingNodeBuilder |
createNodeBuilder(Configuration config)
|
Object |
getAttribute(String name)
Get the value of an attribute. |
List |
getDisposableNodes()
Return the list of ProcessingNodes part of this tree that are
Disposable . |
List |
getEnterSitemapEventListeners()
Return all event listers that are registered for the EnterSitemapEvent . |
List |
getLeaveSitemapEventListeners()
Return all event listers that are registered for the LeaveSitemapEvent . |
String |
getNamespace()
Get the namespace URI that builders should use to find their nodes. |
ConcreteTreeProcessor |
getProcessor()
|
ProcessingNode |
getRegisteredNode(String name)
|
String |
getTypeForStatement(Configuration statement,
String role)
Get the type for a statement : it returns the 'type' attribute if present, and otherwhise the default hint for the ServiceSelector identified by
the role role . |
WebApplicationContext |
getWebApplicationContext()
|
boolean |
registerNode(String name,
ProcessingNode node)
Register a ProcessingNode under a given name. |
void |
setAttribute(String name,
Object value)
Add an attribute. |
void |
setProcessor(ConcreteTreeProcessor processor)
|
ProcessingNode |
setupNode(ProcessingNode node,
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 . |
Field Detail |
public static final String ROLE
Method Detail |
public WebApplicationContext getWebApplicationContext()
public ConcreteTreeProcessor getProcessor()
public void setProcessor(ConcreteTreeProcessor processor)
public boolean registerNode(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.
If a node with the name is already registed, the process fails!
true
is returned; otherwise false.public ProcessingNode getRegisteredNode(String name)
IllegalStateException
public ProcessingNodeBuilder createNodeBuilder(Configuration config) throws Exception
Exception
public String getNamespace()
public ProcessingNode build(Configuration config, String location) throws Exception
Configuration
object holding the sitemap program.
Exception
public 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, Configuration config) throws 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)
.
Exception
public String getTypeForStatement(Configuration statement, String role) throws ConfigurationException
ServiceSelector
identified by
the role role
.
statement
- the statementrole
- the component's role (warn: not the selector's role)
ConfigurationException
- if the default type could not be found.public void setAttribute(String name, Object value)
public Object getAttribute(String name)
public List getEnterSitemapEventListeners()
EnterSitemapEvent
.
public List getLeaveSitemapEventListeners()
LeaveSitemapEvent
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |