public abstract class ComThread
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
haveSTA
Comment for
haveSTA |
static MainSTA |
mainSTA
Comment for
mainSTA |
Constructor and Description |
---|
ComThread() |
Modifier and Type | Method and Description |
---|---|
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 |
RemoveObject(JacobObject o)
Deprecated.
the java model leave the responsibility of clearing up
objects to the Garbage Collector. Our programming model
should not require that the user specifically remove object
from the thread.
This will remove an object from the ROT
|
static void |
startMainSTA() |
public static boolean haveSTA
haveSTA
public static MainSTA mainSTA
mainSTA
public static void InitMTA()
public static void InitSTA()
public static void InitMTA(boolean createMainSTA)
createMainSTA
- public static void InitSTA(boolean createMainSTA)
createMainSTA
- public static void startMainSTA()
public static void quitMainSTA()
public static void Init(boolean createMainSTA, int mode)
createMainSTA
- mode
- public static void Release()
@Deprecated public static void RemoveObject(JacobObject o)
o
- public static void doCoInitialize(int threadModel)
threadModel
- public static void doCoUninitialize()
http://jacob-project.sourceforge.net