consciouscode.seedling.tree
Class StandardRoot
java.lang.Object
consciouscode.seedling.tree.GenericNode
consciouscode.seedling.tree.GenericBranch
consciouscode.seedling.tree.StandardBranch
consciouscode.seedling.tree.StandardRoot
- All Implemented Interfaces:
- BranchingBranch, BranchNode, EventfulBranch, GrowingBranch, LocatableNode, RootNode, ServiceNode
public class StandardRoot
- extends StandardBranch
- implements RootNode, ServiceNode
The global root of a Seedling application tree.
Applications generally don't need to directly instantiate a
Root
; instead, they should use the Seedling
facade.
Constructor Summary |
StandardRoot(NodeProvider nodeProvider,
boolean debug)
Creates a new Seedling root, potentially logging debug messages. |
Methods inherited from class consciouscode.seedling.tree.GenericBranch |
addBranchChangeListener, availableChild, createChild, fireChildInstalled, fireChildUninstalled, getChild, getInstalledNode, getLocalPathForChild, getLocalRoot, getNode, installChild, installedChild, installedChildNames, provisionChildBranch, stopService, uninstallChild |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardRoot
public StandardRoot(NodeProvider nodeProvider,
boolean debug)
throws NodeProvisioningException
- Creates a new Seedling root, potentially logging debug messages.
POSTCONDITION: (getNodeName() != null)
- Throws:
NodeProvisioningException
- if there is a problem with the root
configuration.
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
setStartupNodePath
public void setStartupNodePath(String path)
getStartupNodePath
public String getStartupNodePath()
setShutdownNodePath
public void setShutdownNodePath(String path)
getShutdownNodePath
public String getShutdownNodePath()
getStartupNode
public Object getStartupNode()
- Get a reference to the startup node that was automatically installed
when this root was started.
- See Also:
startService()
shutdown
public void shutdown()
getGlobalMonitor
public final Object getGlobalMonitor()
- Description copied from interface:
RootNode
- NOT SUPPORTED FOR APPLICATION USE.
- Specified by:
getGlobalMonitor
in interface RootNode
startService
public void startService()
throws NodeProvisioningException
- Start the entire Seedling by loading the startup node. If the startup
node is not configured, an error is logged. After calling this method,
the installed node can be accessed via
getStartupNode()
.
- Specified by:
startService
in interface ServiceNode
- Overrides:
startService
in class GenericBranch
- Throws:
NodeInstantiationException
- if there is a problem
installing the startup node.
NodeProvisioningException
- See Also:
SeedlingConstants.STARTUP_NODE
Copyright © 2001–2012
Todd V. Jonker. All Rights Reserved.