at.spardat.xma.boot.comp
Class AppLoaderBase

java.lang.Object
  extended byat.spardat.xma.boot.comp.AppLoaderBase
Direct Known Subclasses:
AppLoader, ServerAppLoader

public class AppLoaderBase
extends java.lang.Object

AppLoaderTools


Field Summary
protected  Logger log_
          logger for parser
protected  Logger parseLog_
          logger for parser
protected  java.util.Properties props
          configuration properties
 
Constructor Summary
protected AppLoaderBase(java.util.Properties pnew)
          constructs a AppLoaderBase
 
Method Summary
protected  byte[] createApplicationHash(java.io.InputStream isApp, java.io.InputStream isPi)
          creates the has value for the application.
protected  void mergeInto(XMAApp main, XMAApp plugins)
          merge plugin information into the main descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log_

protected Logger log_
logger for parser


parseLog_

protected Logger parseLog_
logger for parser


props

protected java.util.Properties props
configuration properties

Constructor Detail

AppLoaderBase

protected AppLoaderBase(java.util.Properties pnew)
constructs a AppLoaderBase

Parameters:
pnew - the boot runtime properties
Method Detail

mergeInto

protected void mergeInto(XMAApp main,
                         XMAApp plugins)
merge plugin information into the main descriptor.

Parameters:
main - application descriptor
plugins - import this

createApplicationHash

protected byte[] createApplicationHash(java.io.InputStream isApp,
                                       java.io.InputStream isPi)
                                throws java.io.IOException
creates the has value for the application. This is done by concatenating the content of the two given input streams and calculating the MD5-hash over this combined content.

Parameters:
isApp - first description file (xma-app.xml)
isPi - second description file (plugin.xml)
Returns:
the calculated hash value
Throws:
java.io.IOException - in case of errors reading the streams