consciouscode.seedling.scope
Class ScopeRoot

java.lang.Object
  extended by consciouscode.seedling.tree.GenericNode
      extended by consciouscode.seedling.tree.GenericBranch
          extended by consciouscode.seedling.tree.StandardBranch
              extended by 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.


Field Summary
 
Fields inherited from class consciouscode.seedling.tree.StandardBranch
myNodeProvider
 
Constructor Summary
ScopeRoot(NodeProvider provider, ScopeManager manager)
          Creates a new root for a scope inheriting from the scope of the given ScopeManager.
 
Method Summary
 Object getGlobalMonitor()
          NOT SUPPORTED FOR APPLICATION USE.
 String getNameInManager()
           
 String getScopeTag()
          NOT SUPPORTED FOR APPLICATION USE.
 void nodeInstalled(NodeLocation location)
          Register the Seedling address at which this node has been installed.
 
Methods inherited from class consciouscode.seedling.tree.StandardBranch
availableChildNames, constructChildBranch, getNodeProvider, provisionChild
 
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 consciouscode.seedling.tree.GenericNode
getLog, getNodeLocation, getNodeName, getParentBranch, isLoggingDebug, setLog, setLoggingDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface consciouscode.seedling.EventfulBranch
addBranchChangeListener
 
Methods inherited from interface consciouscode.seedling.BranchNode
availableChild, availableChildNames, getChild, getInstalledNode, getLocalRoot, getLog, getNode, installedChild, installedChildNames
 
Methods inherited from interface consciouscode.seedling.LocatableNode
getNodeLocation
 
Methods inherited from interface consciouscode.seedling.ServiceNode
startService, stopService
 
Methods inherited from interface consciouscode.seedling.BranchingBranch
provisionChildBranch
 
Methods inherited from interface consciouscode.seedling.GrowingBranch
installChild, uninstallChild
 

Constructor Detail

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.
Method Detail

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.