|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.ProjectManager
public class ProjectManager
A central repository for Projects. Several projects may be run within a single VM instance, for example in the case of a browser where a shared VM is used with multiple applets. The project manager allows only one active or current project.
Copyright (c) Formaria Ltd., 2008
$Revision: 2.4 $
License: see License.txt
| Field Summary | |
|---|---|
protected static Project |
currentProject
The current Project being used |
protected static java.util.Hashtable |
globalObjects
|
protected static java.util.Hashtable |
projects
A store for projects. |
| Constructor Summary | |
|---|---|
ProjectManager()
null ctor |
|
| Method Summary | |
|---|---|
static java.lang.String |
addProject(java.lang.String name,
Project proj)
Add a new project |
static Project |
getCurrentProject()
Get the current or active project, in most cases getCurrentProject( StartupObject ) should be called instead of getCurrentProject. |
static Project |
getCurrentProject(StartupObject so)
Get the current or active project. |
static DataModel |
getModel()
Deprecated. please use currentProject.getModel() instead |
static java.lang.Object |
getObject(java.lang.String key)
Get a manager object |
static PageManager |
getPageManager()
Deprecated. please use currentProject.getPageManager() instead |
static Project |
getProject(java.lang.String name)
Get a named project, the project is then set as the current project. |
java.lang.String[] |
getProjectNames()
Get the names of the projects currently loaded |
static StyleManager |
getStyleManager()
Deprecated. please use currentProject.getStyleManager() instead |
static XmlParserFactory |
getXmlParserFactory()
Deprecated. please use currentProject.getXmlParserFactory() instead |
static void |
removeObject(java.lang.String key)
Remove a manager object value |
static void |
setCurrentProject(Project proj)
Set the current project |
static void |
setObject(java.lang.String key,
java.lang.Object obj)
Set an manager object value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Project currentProject
protected static java.util.Hashtable projects
protected static java.util.Hashtable globalObjects
| Constructor Detail |
|---|
public ProjectManager()
| Method Detail |
|---|
public static Project getCurrentProject()
public static Project getCurrentProject(StartupObject so)
so - the startup object that initiates/owns the project
public static void setCurrentProject(Project proj)
proj - the new current projectpublic static StyleManager getStyleManager()
public static PageManager getPageManager()
public static DataModel getModel()
public static XmlParserFactory getXmlParserFactory()
public java.lang.String[] getProjectNames()
public static Project getProject(java.lang.String name)
public static java.lang.String addProject(java.lang.String name,
Project proj)
name - the name by which the project will be know, if null is passed a
name will be synthesized for the project.proj - the project
public static java.lang.Object getObject(java.lang.String key)
key - the name of the object e.g. "Routes", "Services"
public static void setObject(java.lang.String key,
java.lang.Object obj)
key - the name of the object e.g. "Routes", "Services"obj - the object instancepublic static void removeObject(java.lang.String key)
key - the name of the object e.g. "Routes", "Services"
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||