|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jacob.com.ComThread
public abstract class ComThread
Represents a COM level thread This is an abstract class because all the methods are static and no instances are ever created.
Field Summary | |
---|---|
static boolean |
haveSTA
Comment for haveSTA |
static MainSTA |
mainSTA
Comment for 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 |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean haveSTA
haveSTA
public static MainSTA mainSTA
mainSTA
Constructor Detail |
---|
public ComThread()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |