|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.common.WorkSpaceManager
public abstract class WorkSpaceManager
The WorkSpaceManager class is an abstract class meant to be used in a static context only. It maintains a list of of WorkSpaces in its own internal data structures, and maintains a "current" WorkSpace. Since this class is static, the current WorkSpace can be retrieved from anywhere in a program using code like: WorkSpaceManager.getCurrentWorkSpace(); Any other method of this class can be accessed similarly. BUGS: The static mechanism may not work well with multi-threaded programs.
Constructor Summary | |
---|---|
WorkSpaceManager()
|
Method Summary | |
---|---|
static WorkSpace |
getCurrentWorkSpace()
Return the current WorkSpace, or null if no current WorkSpace has been set. |
static WorkSpace |
getWorkSpace(URL url)
Return the WorkSpace with the given name. |
static void |
main(java.lang.String[] args)
For debugging and testing. |
static boolean |
registerWorkSpace(WorkSpace ws)
Enter the given WorkSpace into the WorkSpaceManager's internal data structures. |
static boolean |
setCurrentWorkSpace(java.lang.String wsName)
Set the current WorkSpace to the WorkSpace with the given name. |
static void |
setCurrentWorkSpace(WorkSpace ws)
Set the current WorkSpace to the given WorkSpace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkSpaceManager()
Method Detail |
---|
public static boolean setCurrentWorkSpace(java.lang.String wsName)
public static void setCurrentWorkSpace(WorkSpace ws)
public static WorkSpace getCurrentWorkSpace()
public static WorkSpace getWorkSpace(URL url) throws java.lang.Exception
java.lang.Exception
public static boolean registerWorkSpace(WorkSpace ws)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |