Package org.terracotta.context
Interface ContextManager.Association
-
- Enclosing class:
- ContextManager
public static interface ContextManager.AssociationCreates parent and child associations to the target context node.Mutations performed to the parent and child node sets of the target node are also accompanied by the equivalent changes to the reverse relationship in the supplied object's context node. This ensures that parent/child relationships are properly consistent.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContextManager.AssociationwithChild(java.lang.Object child)Adds the supplied object's context node as a child of the target context node.ContextManager.AssociationwithParent(java.lang.Object parent)Adds the supplied object's context node as a parent of the target context node.
-
-
-
Method Detail
-
withChild
ContextManager.Association withChild(java.lang.Object child)
Adds the supplied object's context node as a child of the target context node.- Parameters:
child- object whose context node will be associated- Returns:
- this association object
-
withParent
ContextManager.Association withParent(java.lang.Object parent)
Adds the supplied object's context node as a parent of the target context node.- Parameters:
parent- object whose context node will be associated- Returns:
- this association object
-
-