|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.boot.comp.AppLoaderBase
at.spardat.xma.boot.comp.AppLoader
AppLoader is responsible for loading, updating and preparation of application information. It loads the xma-app.xml and the plugin-extenstions from the server. It also checks for updates, if the resources are expired.
| Field Summary |
| Fields inherited from class at.spardat.xma.boot.comp.AppLoaderBase |
log_, parseLog_, props |
| Constructor Summary | |
AppLoader(java.util.Properties pnew)
constructor |
|
| Method Summary | |
static void |
checkIntegrity(XMAApp app)
checks the application descriptor whether it is complete or not. |
static java.util.ArrayList |
checkPluginSpecImpl(XMAApp app)
this method checks wheather plugin-specīs can be found also as plugin-implīs and returns a list of missing plugin implementations. |
static void |
checkResourceIntegrity(XMAApp app)
checks the application descriptor whether it is complete or not. |
IComponentHelper |
getCompHelper()
Returns the ComponentHelper used for SWT-dependent methods. |
IFileCache |
getFileCache()
Gets the file cache used by this AppLoader |
CCLoader |
getSwtClassLoader()
Returns the classloader used for loading SWT classes. |
AppContainer |
initAppComponent(XMA_URI uri,
XMAApp appIn,
VersionNumber serverVers)
initializes the application container. |
AppContainer |
loadApplication(XMA_URI input,
byte[] hash,
VersionNumber serverVers)
loads application/descriptor and underlying resources |
AppContainer |
loadApplicationWithBusyIndicator(XMA_URI input,
byte[] hash,
VersionNumber serverVers)
loads application/descriptor and underlying resources and shows a window with a progrss bar while loading. |
void |
loadResources(XMA_URI uri,
java.util.HashMap cmp,
VersionNumber serverVers)
loads resources and stores the reference in the XMAResource for later use. |
void |
markApplicationUsed(XMA_URI uriapp)
Marks the given application as started with a timestamp. |
protected static void |
urlLocalToArray(XMAResource xres,
java.util.List list,
java.lang.String type)
If the type of xres matches 'type': The FileCache Url of 'xres' is added to 'list'. |
| Methods inherited from class at.spardat.xma.boot.comp.AppLoaderBase |
createApplicationHash, mergeInto |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AppLoader(java.util.Properties pnew)
| Method Detail |
public AppContainer loadApplication(XMA_URI input,
byte[] hash,
VersionNumber serverVers)
throws java.lang.Exception
input - the requested application/component URI as got from outsidehash - over xma-app.xml and plugin.xmlserverVers - version number of the xma-runtime on the server
java.lang.RuntimeException - xml parse error, resource errors and server-errors
java.lang.Exception
public AppContainer loadApplicationWithBusyIndicator(XMA_URI input,
byte[] hash,
VersionNumber serverVers)
throws java.lang.Exception
input - the requested application/component URI as got from outsidehash - over xma-app.xml and plugin.xmlserverVers - version number of the xma-runtime on the server
java.lang.Exception - xml parse error, resource errors and server-errors
public AppContainer initAppComponent(XMA_URI uri,
XMAApp appIn,
VersionNumber serverVers)
throws java.io.IOException
uri - the requested applicationappIn - parsed application descriptorserverVers - version number of the xma-runtime on the server
java.io.IOException - containing the filename on resource loading errors
protected static void urlLocalToArray(XMAResource xres,
java.util.List list,
java.lang.String type)
xres - the resourcelist - - stores the FileCache Url of xrestype - public static void checkIntegrity(XMAApp app)
app - model to checkpublic static void checkResourceIntegrity(XMAApp app)
app - model to checkpublic static java.util.ArrayList checkPluginSpecImpl(XMAApp app)
app - xma application descriptor
public void loadResources(XMA_URI uri,
java.util.HashMap cmp,
VersionNumber serverVers)
throws java.io.IOException
uri - application uricmp - hashmap that contains resources to be loaded.serverVers - version number of the xma-runtime on the server
java.io.IOException - containing the filename on resource loading errorspublic void markApplicationUsed(XMA_URI uriapp)
uriapp - indentifieing the application to markpublic IFileCache getFileCache()
public CCLoader getSwtClassLoader()
public IComponentHelper getCompHelper()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||