|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.activityspace.ASManager
public class ASManager
The ASManager is a singleton class that returns Activity Spaces, Models, Views, & Controls. This uses dynamic discovery to import all of the IActivitySpace, IModel, IView, and IControl objects in certain locations, and then maintain a hashmap of clones, with possible resource pooling. The maps are initialized at startup, and are then assumed to be read only from that point on. Therefore, they should not need to be locked.
Field Summary | |
---|---|
static ASManager |
INSTANCE
Use this class static to access the one and only instance of ActivitySpaceManager. |
boolean |
m_bSystemStartupSuccesful
whether or not the system was able to start up correctly. |
java.lang.Exception |
m_StartupFailure
The exception that caused the system to fail startup. |
Method Summary | |
---|---|
IControl |
GetControl(java.lang.String controlName)
Create the requested Control. |
boolean |
GetControlExists(java.lang.String controlName)
Checks to determine if specified control has been loaded by dynamic discovery into the hashtable of controls. |
IModel |
GetModel(java.lang.String modelName)
Create the Model specified by the model name. |
boolean |
GetModelExists(java.lang.String modelName)
Checks to determine if specified model has been loaded by dynamic discovery into the hashtable of models. |
int |
GetNumCustomControls()
This method returns the number of custom Controls currently loaded. |
int |
GetNumCustomModels()
This method returns the number of custom Models currently loaded. |
int |
GetNumCustomPageControls()
This method returns the number of custom Page Controls currently loaded. |
int |
GetNumCustomSpaces()
This method returns the number of custom Activity Spaces currently loaded. |
int |
GetNumCustomViews()
This method returns the number of custom Views currently loaded. |
IPageControl |
GetPageControl(java.lang.String pageControlName)
Create the page control specified by the pagecontrol name. |
boolean |
GetPageControlExists(java.lang.String pageControlName)
Checks to determine if specified page control has been loaded by dynamic discovery into the hashtable of pagecontrols. |
XPHashtable |
GetPageControlTable()
Get the table containing the page controls |
AActivitySpace |
GetSpace(java.lang.String spaceName)
Create the requested Activity Space. |
boolean |
GetSpaceExists(java.lang.String spaceName)
Checks to determine if specified activity space has been loaded by dynamic discovery into the hashtable of activity spaces. |
IView |
GetView(java.lang.String viewName)
Create the view specified by the view name. |
boolean |
GetViewExists(java.lang.String viewName)
Checks to determine if specified view has been loaded by dynamic discovery into the hashtable of views. |
void |
LoadClasses(java.lang.String strLibDir,
java.lang.String strConfigFile)
This method initializes the ASManager and should only be called by the warmup servlet. |
void |
LoadCustomClasses(java.lang.String strLibDir,
java.lang.String strConfigFile)
This method initializes the ASManager with custom lib files to overwrite the original ones and should only be called by the warmup servlet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.Exception m_StartupFailure
public static final ASManager INSTANCE
public boolean m_bSystemStartupSuccesful
Method Detail |
---|
public IControl GetControl(java.lang.String controlName)
controlName
- The name of the control to create
public boolean GetControlExists(java.lang.String controlName)
controlName
- Control name
public XPHashtable GetPageControlTable()
public IModel GetModel(java.lang.String modelName)
modelName
- The name of the model to be created
public boolean GetModelExists(java.lang.String modelName)
modelName
- Model name
public AActivitySpace GetSpace(java.lang.String spaceName)
spaceName
- The name of the space to create
public boolean GetSpaceExists(java.lang.String spaceName)
spaceName
- Activity space name
public IView GetView(java.lang.String viewName)
viewName
- The name of the view to create
public boolean GetViewExists(java.lang.String viewName)
viewName
- View name
public IPageControl GetPageControl(java.lang.String pageControlName)
pagecontrolName
- The name of the pagecontrol to create
public boolean GetPageControlExists(java.lang.String pageControlName)
pageControlName
- pagecontrol name
public void LoadClasses(java.lang.String strLibDir, java.lang.String strConfigFile)
strLibDir
- The file directory where jars and dlls can be foundstrConfigFile
- the name of the config filepublic void LoadCustomClasses(java.lang.String strLibDir, java.lang.String strConfigFile)
strLibDir
- The file directory where jars and dlls can be foundstrConfigFile
- the name of the custom config filepublic int GetNumCustomControls()
public int GetNumCustomModels()
public int GetNumCustomPageControls()
public int GetNumCustomSpaces()
public int GetNumCustomViews()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |