consciouscode.seedling.scope
Class ScopeRoot
java.lang.Object
consciouscode.seedling.tree.GenericNode
consciouscode.seedling.tree.GenericBranch
consciouscode.seedling.tree.StandardBranch
consciouscode.seedling.scope.ScopeRoot
- All Implemented Interfaces:
- BranchingBranch, BranchNode, EventfulBranch, GrowingBranch, LocatableNode, RootNode, ServiceNode
public class ScopeRoot
- extends StandardBranch
- implements RootNode
A local root node that contains all of the nodes of a non-global scope.
A ScopeRoot
is installed as a child node of a ScopeManager
.
Methods inherited from class consciouscode.seedling.tree.GenericBranch |
addBranchChangeListener, availableChild, createChild, fireChildInstalled, fireChildUninstalled, getChild, getInstalledNode, getLocalPathForChild, getLocalRoot, getNode, installChild, installedChild, installedChildNames, provisionChildBranch, startService, stopService, uninstallChild |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScopeRoot
public ScopeRoot(NodeProvider provider,
ScopeManager manager)
- Creates a new root for a scope inheriting from the scope of the given
ScopeManager
.
- Parameters:
manager
- must not be null
.
getNameInManager
public String getNameInManager()
getScopeTag
public String getScopeTag()
- Description copied from interface:
RootNode
- NOT SUPPORTED FOR APPLICATION USE.
Returns the tag identifying this root's scope.
- Specified by:
getScopeTag
in interface RootNode
nodeInstalled
public void nodeInstalled(NodeLocation location)
- Description copied from class:
GenericBranch
- Register the Seedling address at which this node has been installed.
This is called immediately after the node has been installed into the
tree.
Note: This is not called setNodeLocation
because
the location is not intended as a writable property.
This implementation calls super
and then caches the location's
local root
.
- Specified by:
nodeInstalled
in interface LocatableNode
- Overrides:
nodeInstalled
in class StandardBranch
- Parameters:
location
- is this node's new location. It must not be null.- See Also:
GenericBranch.getLocalRoot()
getGlobalMonitor
public final Object getGlobalMonitor()
- Description copied from interface:
RootNode
- NOT SUPPORTED FOR APPLICATION USE.
- Specified by:
getGlobalMonitor
in interface RootNode
Copyright © 2001–2012
Todd V. Jonker. All Rights Reserved.