consciouscode.seedling
Class Seedling
java.lang.Object
consciouscode.seedling.Seedling
public class Seedling
- extends Object
Facade for an entire Seedling, most useful for controlling the startup and
shutdown process. Generally you shouldn't need to use this class, since the
standard launch process can handle most use cases. However, manually
starting and stopping a Seedling can be useful when you are embedding it
within an application where you can't change the launch process.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Seedling
public Seedling(RootNode root,
ResourceTree seedlingUrlResources)
- Parameters:
seedlingUrlResources
- When isHandlingSeedlingUrls()
is true, any requests to
open a seedling:
URL will be redirected to this resource
tree.
isHandlingSeedlingUrls
public boolean isHandlingSeedlingUrls()
setHandlingSeedlingUrls
public void setHandlingSeedlingUrls(boolean handleUrls)
- Indicates whether this Seedling should handle
seedling:
URLs.
getRoot
public RootNode getRoot()
getUrlResources
public ResourceTree getUrlResources()
- Gets the
ResourceTree
that will be used to handle
seedling:
URLs (if isHandlingSeedlingUrls()
).
- Returns:
- may be null.
start
public void start()
throws SeedlingException
- Throws:
SeedlingException
stop
public void stop()
Copyright © 2001–2012
Todd V. Jonker. All Rights Reserved.