org.objectweb.dsrg.sofa
Class SOFAThreadHelper

java.lang.Object
  extended by org.objectweb.dsrg.sofa.SOFAThreadHelper

public abstract class SOFAThreadHelper
extends java.lang.Object

This class contains only static methods and fields. ThreadHelper is used to keep track of thread in non-offending matter.

It stores per thread information about CallContext and MIInComponent interface if present.


Constructor Summary
SOFAThreadHelper()
           
 
Method Summary
static java.lang.String getCallContext()
          Gets call context string of the current thread.
static MIInComponent getInComponent()
          Gets reference to the MIInComponent control interface.
static void init(java.lang.String dockName)
          Initialises the ThreadHelper class.
static void setCallContext(java.lang.String context)
          Sets call context of the current thread to the given string.
static void setInComponent(MIInComponent iface)
          Sets reference to the MIInComponent control interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOFAThreadHelper

public SOFAThreadHelper()
Method Detail

init

public static void init(java.lang.String dockName)
Initialises the ThreadHelper class. Should be called once per java virtual machine.


setCallContext

public static void setCallContext(java.lang.String context)
Sets call context of the current thread to the given string.

Parameters:
context - String to be used as new call context for current thread.

getCallContext

public static java.lang.String getCallContext()
Gets call context string of the current thread.

Returns:
Call context string of current thread.

setInComponent

public static void setInComponent(MIInComponent iface)
Sets reference to the MIInComponent control interface.

Parameters:
iface - Reference to the MIInComponent control interface.

getInComponent

public static MIInComponent getInComponent()
Gets reference to the MIInComponent control interface.

Returns:
Reference to the MIInComponent control interface.