at.spardat.xma.boot.component
Interface IComponentHelper

All Known Implementing Classes:
ComponentHelper

public interface IComponentHelper

Interface to ComponentHelper which is deployed in the same classloader as SWT and IComponent. It encapsulates the code of the bootruntime which is dependend on SWT.


Method Summary
 IComponent castToIComponent(java.lang.Object component)
          Just casts the given object to IComponent.
 void cleanupSWTDisplay()
          Disposes the display created by initSWTDisplay() of this IComponentHelper.
 IRtXMASessionClient getRTSession(java.lang.Object component)
          Calls IComponent.getRTSession() on the given component.
 java.lang.Object initSWTDisplay()
          Creates a Display in SWT if none allready exists.
 java.util.Properties launch(java.lang.Object component, java.util.Properties input)
          Launches the given component.
 

Method Detail

castToIComponent

public IComponent castToIComponent(java.lang.Object component)
Just casts the given object to IComponent.

Returns:
the unchanged component
Throws:
java.lang.ClassCastException - if the given object is not an IComponent

getRTSession

public IRtXMASessionClient getRTSession(java.lang.Object component)
Calls IComponent.getRTSession() on the given component.

Returns:
the client side session the given component belongs to.
Throws:
java.lang.ClassCastException - if the given object is not an IComponent

launch

public java.util.Properties launch(java.lang.Object component,
                                   java.util.Properties input)
Launches the given component. The input properties are passed to the component, then the component is invoked. Finally the component is disposed.

Returns:
the output properties of the given component
Throws:
java.lang.ClassCastException - if the given object is not an IComponent

initSWTDisplay

public java.lang.Object initSWTDisplay()
Creates a Display in SWT if none allready exists.

Returns:
the preexisting or created Display.

cleanupSWTDisplay

public void cleanupSWTDisplay()
Disposes the display created by initSWTDisplay() of this IComponentHelper. If no display was created by initSWTDisplay(), it does nothing.