at.spardat.xma.boot.comp
Class AppContainer

java.lang.Object
  extended byat.spardat.xma.boot.comp.AppContainer
All Implemented Interfaces:
IBootRuntime

public class AppContainer
extends java.lang.Object
implements IBootRuntime

AppContainer is a data-object that holds information about a running application and itīs components.


Constructor Summary
AppContainer()
           
 
Method Summary
 void addRunningCmp(XMAComponent cmp)
           
 void endComponent(IComponent rtc)
          cleanup components and application resources.
 XMAApp getApp()
           
 AppManager getAppManager()
          get application manager
 CCLoader getCcl_()
           
 CCLoader getCcl()
           
 IComponent getComponent(java.lang.String component)
          get a component
 byte[] getDigest()
          get digest (version hash code) for the current application
 java.lang.String getDigestAsString()
           
 java.lang.String getPluginImplClient(java.lang.String interfaceName)
          get the name of the class that implements the interface name given as input parameter.
 java.util.HashMap getRuncmp_()
           
 XMAComponent getRunningCmp(java.lang.String strCmpName)
           
 XMAComponent getRunningCmp(XMAComponent cmp)
           
 VersionNumber getServerVers()
           
 IRtXMASessionClient getSession_()
           
 IRtXMASessionClient getSession()
          get the the xma session for this application
 boolean isRunningCmp(XMAComponent cmp)
           
 XMAComponent remRunningCmp(java.lang.String name)
           
 int runningCmp()
           
 void setApp_(XMAApp app)
           
 void setApp(XMAApp app)
           
 void setAppManager(AppManager in)
          set application manager
 void setCcl_(CCLoader loader)
           
 void setCcl(CCLoader loader)
           
 void setDigest(byte[] bs)
           
 void setRuncmp_(java.util.HashMap map)
           
 void setServerVers(VersionNumber serverVers)
           
 void setSession_(IRtXMASessionClient client)
           
 void setSession(IRtXMASessionClient client)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppContainer

public AppContainer()
Method Detail

setAppManager

public void setAppManager(AppManager in)
set application manager


getAppManager

public AppManager getAppManager()
get application manager


getApp

public XMAApp getApp()
Returns:
XMAApp xma application description

getSession

public IRtXMASessionClient getSession()
get the the xma session for this application


getCcl

public CCLoader getCcl()
Returns:
CCLoader

setApp

public void setApp(XMAApp app)
Parameters:
app -

setCcl

public void setCcl(CCLoader loader)
Parameters:
loader -

getCcl_

public CCLoader getCcl_()
Returns:
CCLoader

setApp_

public void setApp_(XMAApp app)
Parameters:
app -

setCcl_

public void setCcl_(CCLoader loader)
Parameters:
loader -

setSession

public void setSession(IRtXMASessionClient client)
Parameters:
client -

getSession_

public IRtXMASessionClient getSession_()
Returns:
IRtXMASessionClient

setSession_

public void setSession_(IRtXMASessionClient client)
Parameters:
client -

getRuncmp_

public java.util.HashMap getRuncmp_()
Returns:
HashMap

setRuncmp_

public void setRuncmp_(java.util.HashMap map)
Parameters:
map -

getServerVers

public VersionNumber getServerVers()
Returns:
Returns the serverVers_.

setServerVers

public void setServerVers(VersionNumber serverVers)
Parameters:
serverVers - The serverVers to set.

isRunningCmp

public boolean isRunningCmp(XMAComponent cmp)

getRunningCmp

public XMAComponent getRunningCmp(XMAComponent cmp)

getRunningCmp

public XMAComponent getRunningCmp(java.lang.String strCmpName)

addRunningCmp

public void addRunningCmp(XMAComponent cmp)

remRunningCmp

public XMAComponent remRunningCmp(java.lang.String name)

runningCmp

public int runningCmp()

getDigest

public byte[] getDigest()
Description copied from interface: IBootRuntime
get digest (version hash code) for the current application

Specified by:
getDigest in interface IBootRuntime
Returns:
application descriptor digest value

setDigest

public void setDigest(byte[] bs)
Parameters:
bs - application descriptor digest value

getDigestAsString

public java.lang.String getDigestAsString()

getComponent

public IComponent getComponent(java.lang.String component)
                        throws java.lang.Exception
Description copied from interface: IBootRuntime
get a component

Specified by:
getComponent in interface IBootRuntime
Parameters:
component - the absolute uri of the desired component in another or the same webapplication.
Returns:
IComponent the component
Throws:
java.lang.Exception - unable to load, create or instantiate the component

endComponent

public void endComponent(IComponent rtc)
Description copied from interface: IBootRuntime
cleanup components and application resources. logout from application, if this component is the last one for this application.

Specified by:
endComponent in interface IBootRuntime
Parameters:
rtc - the terminating component

getPluginImplClient

public java.lang.String getPluginImplClient(java.lang.String interfaceName)
Description copied from interface: IBootRuntime
get the name of the class that implements the interface name given as input parameter. returns the client implemenation

Specified by:
getPluginImplClient in interface IBootRuntime
Parameters:
interfaceName - name of the plugin interface
Returns:
name of the implementation class.