com.jacob.com
Class ComThread

java.lang.Object
  extended by com.jacob.com.ComThread

public abstract class ComThread
extends java.lang.Object


Field Summary
static boolean haveSTA
           
static MainSTA mainSTA
           
 
Constructor Summary
ComThread()
           
 
Method Summary
static void doCoInitialize(int threadModel)
           
static void doCoUninitialize()
           
static void Init(boolean createMainSTA, int mode)
          Initialize the current java thread to be part of the MTA/STA COM Apartment
static void InitMTA()
          Initialize the current java thread to be part of the Multi-threaded COM Apartment
static void InitMTA(boolean createMainSTA)
          Initialize the current java thread to be part of the Multi-threaded COM Apartment, if createMainSTA is true, create a separate MainSTA thread that will house all Apartment Threaded components
static void InitSTA()
          Initialize the current java thread to be an STA
static void InitSTA(boolean createMainSTA)
          Initialize the current java thread to be an STA COM Apartment, if createMainSTA is true, create a separate MainSTA thread that will house all Apartment Threaded components
static void quitMainSTA()
           
static void Release()
          Call CoUninitialize to release this java thread from COM
static void startMainSTA()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

haveSTA

public static boolean haveSTA

mainSTA

public static MainSTA mainSTA
Constructor Detail

ComThread

public ComThread()
Method Detail

InitMTA

public static void InitMTA()
Initialize the current java thread to be part of the Multi-threaded COM Apartment


InitSTA

public static void InitSTA()
Initialize the current java thread to be an STA


InitMTA

public static void InitMTA(boolean createMainSTA)
Initialize the current java thread to be part of the Multi-threaded COM Apartment, if createMainSTA is true, create a separate MainSTA thread that will house all Apartment Threaded components


InitSTA

public static void InitSTA(boolean createMainSTA)
Initialize the current java thread to be an STA COM Apartment, if createMainSTA is true, create a separate MainSTA thread that will house all Apartment Threaded components


startMainSTA

public static void startMainSTA()

quitMainSTA

public static void quitMainSTA()

Init

public static void Init(boolean createMainSTA,
                        int mode)
Initialize the current java thread to be part of the MTA/STA COM Apartment


Release

public static void Release()
Call CoUninitialize to release this java thread from COM


doCoInitialize

public static void doCoInitialize(int threadModel)

doCoUninitialize

public static void doCoUninitialize()