|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jboss.cache.factories.NodeFactory
A factory that generates nodes.
Field Summary | |
static byte |
NODE_TYPE_OPTIMISTIC_NODE
|
static byte |
NODE_TYPE_TREENODE
|
static byte |
NODE_TYPE_WORKSPACE_NODE
|
Method Summary | |
DataNode |
createDataNode(byte nodeType,
java.lang.Object childName,
Fqn fqn,
DataNode parent,
java.util.Map data,
boolean mapSafe,
TreeCache cache)
Creates a new DataNode instance. |
DataNode |
createDataNode(byte nodeType,
java.lang.Object childName,
Fqn fqn,
DataNode parent,
java.util.Map data,
TreeCache cache)
|
TreeNode |
createNodeOfType(TreeNode template,
java.lang.Object childName,
Fqn fqn,
TreeNode parent,
java.util.Map data,
TreeCache cache)
Creates a node of the same type of the node passed in as a template. |
WorkspaceNode |
createWorkspaceNode(TreeNode parent,
TransactionWorkspace workspace)
|
static NodeFactory |
getInstance()
Singleton accessor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte NODE_TYPE_TREENODE
public static final byte NODE_TYPE_WORKSPACE_NODE
public static final byte NODE_TYPE_OPTIMISTIC_NODE
Method Detail |
public static NodeFactory getInstance()
public DataNode createDataNode(byte nodeType, java.lang.Object childName, Fqn fqn, DataNode parent, java.util.Map data, TreeCache cache)
public DataNode createDataNode(byte nodeType, java.lang.Object childName, Fqn fqn, DataNode parent, java.util.Map data, boolean mapSafe, TreeCache cache)
DataNode
instance.
nodeType
- either NODE_TYPE_TREENODE
or NODE_TYPE_TREENODE
childName
- the new node's namefqn
- the new node's Fqnparent
- the new node's parentdata
- the new node's attribute mapmapSafe
- true
if param data
can safely
be directly assigned to the new node's data field;
false
if param data
's contents
should be copied into the new node's data field.cache
- the cache to which the new node will be added
public TreeNode createNodeOfType(TreeNode template, java.lang.Object childName, Fqn fqn, TreeNode parent, java.util.Map data, TreeCache cache)
template
-
public WorkspaceNode createWorkspaceNode(TreeNode parent, TransactionWorkspace workspace)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |