public interface NodeFactory<K,V>
Modifier and Type | Method and Description |
---|---|
InternalNode<K,V> |
createChildNode(Fqn fqn,
InternalNode<K,V> parent,
InvocationContext ctx,
boolean attachToParent)
Creates a new node, and optionally attaches the node to its parent.
|
InternalNode<K,V> |
createInternalNode(Fqn childFqn)
Creates an internal node.
|
NodeSPI<K,V> |
createNode(Fqn fqn,
NodeSPI<K,V> parent)
Creates a new, empty node.
|
NodeSPI<K,V> |
createNode(Fqn fqn,
NodeSPI<K,V> parent,
Map<K,V> data)
Creates a new node and populates its attributes.
|
NodeSPI<K,V> |
createNode(Object childName,
NodeSPI<K,V> parent)
Creates a new, empty node.
|
NodeSPI<K,V> |
createNode(Object childName,
NodeSPI<K,V> parent,
Map<K,V> data)
Creates a new node and populates its attributes.
|
NodeSPI<K,V> |
createRootNode() |
ReadCommittedNode |
createWrappedNode(InternalNode<K,V> node,
InternalNode<K,V> parent) |
WorkspaceNode<K,V> |
createWrappedNode(NodeSPI<K,V> dataNode,
TransactionWorkspace workspace) |
ReadCommittedNode |
createWrappedNodeForRemoval(Fqn fqn,
InternalNode<K,V> node,
InternalNode<K,V> parent) |
ReadCommittedNode createWrappedNode(InternalNode<K,V> node, InternalNode<K,V> parent)
ReadCommittedNode createWrappedNodeForRemoval(Fqn fqn, InternalNode<K,V> node, InternalNode<K,V> parent)
WorkspaceNode<K,V> createWrappedNode(NodeSPI<K,V> dataNode, TransactionWorkspace workspace)
NodeSPI<K,V> createNode(Fqn fqn, NodeSPI<K,V> parent, Map<K,V> data)
fqn
- parent
- data
- NodeSPI<K,V> createNode(Object childName, NodeSPI<K,V> parent, Map<K,V> data)
childName
- parent
- data
- NodeSPI<K,V> createNode(Fqn fqn, NodeSPI<K,V> parent)
fqn
- parent
- NodeSPI<K,V> createNode(Object childName, NodeSPI<K,V> parent)
childName
- parent
- InternalNode<K,V> createChildNode(Fqn fqn, InternalNode<K,V> parent, InvocationContext ctx, boolean attachToParent)
fqn
- fqn of node to create. Must not be null or root.parent
- parent to attach to. Must not be null, even if attachToParent is false.ctx
- invocation context to register with. Must not be null.attachToParent
- if true, the node is registered in the parent's child map. If false, it is not.InternalNode<K,V> createInternalNode(Fqn childFqn)
createNode(Fqn, NodeSPI)
except that the resultant node is not wrapped
in a NodeInvocationDelegate
.childFqn
- Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.