Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.host.runtime
Interface TuscanyRuntime


public interface TuscanyRuntime

Version:
$Rev: 452935 $ $Date: 2006-10-04 09:57:54 -0700 (Wed, 04 Oct 2006) $

Method Summary
 MonitorFactory createDefaultMonitorFactory()
          Create the default MonitorFactory for this runtime.
 void destroy()
          Destroy the runtime.
 ClassLoader getApplicationClassLoader()
          Get the application classloader
 String getApplicationName()
          Returns the name of the component associated with the application SCDL.
 URL getApplicationScdl()
          Returns the location of the default application's SCDL.
 org.osoa.sca.SCA getContext()
          Returns the current SCA context
 ClassLoader getHostClassLoader()
          Returns the host ClassLoader that is parent to all Tuscany classloaders.
 MonitorFactory getMonitorFactory()
          Returns the MonitorFactory that this runtime is using.
 RuntimeInfo getRuntimeInfo()
          Returns the info this runtime will make available to service components.
 URL getSystemScdl()
          Returns the location of the SCDL used to boot this runtime.
 void initialize()
          Initialize a runtime.
 void setApplicationClassLoader(ClassLoader applicationClassLoader)
          Set the application classloader
 void setApplicationName(String applicationName)
          Sets the name of the component associated with the application SCDL.
 void setApplicationScdl(URL applicationScdl)
          Sets the location of the default application's SCDL
 void setHostClassLoader(ClassLoader classLoader)
          Sets the host ClassLoader; this will be a parent for all Tuscany classloaders.
 void setMonitorFactory(MonitorFactory monitorFactory)
          Sets the MonitorFactory that this runtime should use.
 void setRuntimeInfo(RuntimeInfo runtimeInfo)
          Sets the info this runtime should make available to service components.
 void setSystemScdl(URL systemScdl)
          Sets the location of the SCDL used to boot this runtime.
 

Method Detail

getSystemScdl

URL getSystemScdl()
Returns the location of the SCDL used to boot this runtime.

Returns:
the location of the SCDL used to boot this runtime

setSystemScdl

void setSystemScdl(URL systemScdl)
Sets the location of the SCDL used to boot this runtime.

Parameters:
systemScdl - the location of the SCDL used to boot this runtime

getApplicationName

String getApplicationName()
Returns the name of the component associated with the application SCDL.

Returns:
the name of the component associated with the application SCDL

setApplicationName

void setApplicationName(String applicationName)
Sets the name of the component associated with the application SCDL.

Parameters:
applicationName - the name of the component associated with the application SCDL

getApplicationScdl

URL getApplicationScdl()
Returns the location of the default application's SCDL.

Returns:
the location of the default application's SCDL

setApplicationScdl

void setApplicationScdl(URL applicationScdl)
Sets the location of the default application's SCDL

Parameters:
applicationScdl - the location of the default application's SCDL

getHostClassLoader

ClassLoader getHostClassLoader()
Returns the host ClassLoader that is parent to all Tuscany classloaders.

Returns:
the host's ClassLoader

setHostClassLoader

void setHostClassLoader(ClassLoader classLoader)
Sets the host ClassLoader; this will be a parent for all Tuscany classloaders.

Parameters:
classLoader - the host's ClassLoader

getRuntimeInfo

RuntimeInfo getRuntimeInfo()
Returns the info this runtime will make available to service components.

Returns:
the info this runtime will make available to service components

setRuntimeInfo

void setRuntimeInfo(RuntimeInfo runtimeInfo)
Sets the info this runtime should make available to service components. The instance supplied here should be registered in the system composite with the name "RuntimeInfo".

Parameters:
runtimeInfo - the information this runtime should make available to service components

getMonitorFactory

MonitorFactory getMonitorFactory()
Returns the MonitorFactory that this runtime is using.

Returns:
the MonitorFactory that this runtime is using

setMonitorFactory

void setMonitorFactory(MonitorFactory monitorFactory)
Sets the MonitorFactory that this runtime should use.

Parameters:
monitorFactory - the MonitorFactory that this runtime should use

createDefaultMonitorFactory

MonitorFactory createDefaultMonitorFactory()
Create the default MonitorFactory for this runtime.

Returns:
the default MonitorFactory for this runtime

initialize

void initialize()
Initialize a runtime.


destroy

void destroy()
Destroy the runtime. Any further invocations should result in an error.


getContext

org.osoa.sca.SCA getContext()
Returns the current SCA context


getApplicationClassLoader

ClassLoader getApplicationClassLoader()
Get the application classloader


setApplicationClassLoader

void setApplicationClassLoader(ClassLoader applicationClassLoader)
Set the application classloader


Apache Tuscany SCA Kernel Sub-Project

-