Package org.terracotta.context
Class RootNode
- java.lang.Object
-
- org.terracotta.context.AbstractTreeNode
-
- org.terracotta.context.RootNode
-
- All Implemented Interfaces:
TreeNode,WeakIdentityHashMap.Cleanable
class RootNode extends AbstractTreeNode
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<ContextListener>listeners
-
Constructor Summary
Constructors Constructor Description RootNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddedParent(AbstractTreeNode child)voidaddListener(ContextListener listener)(package private) java.util.Set<AbstractTreeNode>getAncestors()ContextElementgetContext()Returns the context information associated with this node.(package private) java.util.Collection<ContextListener>getListeners()java.util.Collection<java.util.List<? extends TreeNode>>getPaths()Returns the complete set of rooting paths for this context element.(package private) voidremovedParent(AbstractTreeNode child)voidremoveListener(ContextListener listener)-
Methods inherited from class org.terracotta.context.AbstractTreeNode
addChild, clean, dumpSubtree, getChildren, getPath, removeChild, toTreeString
-
-
-
-
Field Detail
-
listeners
private final java.util.Collection<ContextListener> listeners
-
-
Method Detail
-
addedParent
void addedParent(AbstractTreeNode child)
- Specified by:
addedParentin classAbstractTreeNode
-
removedParent
void removedParent(AbstractTreeNode child)
- Specified by:
removedParentin classAbstractTreeNode
-
getAncestors
java.util.Set<AbstractTreeNode> getAncestors()
- Specified by:
getAncestorsin classAbstractTreeNode
-
getListeners
java.util.Collection<ContextListener> getListeners()
- Specified by:
getListenersin classAbstractTreeNode
-
addListener
public void addListener(ContextListener listener)
-
removeListener
public void removeListener(ContextListener listener)
-
getContext
public ContextElement getContext()
Description copied from interface:TreeNodeReturns the context information associated with this node.- Returns:
- node context information
-
-