|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NodeFactory<K,V>
An interface for a factory that creates nodes. This used to be a concrete class prior to 3.0.0. Made into an interface to simplify logic of different locking schemes and node types.
| Method Summary | |
|---|---|
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)
|
| Method Detail |
|---|
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.
NodeSPI<K,V> createRootNode()
InternalNode<K,V> createInternalNode(Fqn childFqn)
createNode(Fqn, NodeSPI) except that the resultant node is not wrapped
in a NodeInvocationDelegate.
childFqn -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||