public class EngineInitializer
extends java.lang.Object
Title: EngineInitializer
Description: EngineInitializer initializes ArcObjects for Java for usage in ArcGIS Engine
Copyright: Copyright (c) 2003
Company: ESRI
Modifier and Type | Field and Description |
---|---|
static boolean |
isInitVisualBeans |
static boolean |
noMTASTACommunication |
static boolean |
setVersion |
Modifier and Type | Method and Description |
---|---|
void |
init()
Initialize the ArcObjects for Java with options set previously by calling
setXxx() methods. |
static void |
initializeEngine()
Initialize the ArcObjects for Java with options optimal for usage in a
ArcGIS Engine
|
static void |
initializePro(int productCode) |
static void |
initializeServer(int productCode)
Initialize the ArcObjects for ArcGIS Server with options optimal for usage in a
ArcGIS Server
|
static void |
initializeVisualBeans()
Initialize ArcObjects for Java with options optimal for using visual Java Beans in
ArcGIS Engine.
|
static void |
initLicensing(int product,
java.lang.String pathToBin)
Initialize the ArcObjects for ArcGIS Server with options optimal for usage in a
ArcGIS Server
|
static void |
release(java.lang.Object anObject)
Release a specific reference to a COM object.
|
static void |
releaseAll()
Release all outstanding references to COM objects.
|
static void |
releaseAllInCurrentThread()
Tell the runtime to release all objects used in the current thread since the last 'trackObjectsInCurrentThread' call.
|
void |
setBeanUsage(boolean beanUsage)
Indicates whether visual ArcObjects for Java beans are used
|
static void |
setDefault(java.lang.String domain,
java.lang.String user,
java.lang.String password)
Set the authentification to be used by default if none is specified when creating or using a ArcObjects
Java component
|
void |
setEngineUsage()
Sets the default usage for using the ArcGIS ArcObjects for Java.
|
void |
setNativeMode(boolean nativeMode)
Indicates whether native mode is used.
|
void |
setShutdownHook(boolean shutdownHook)
Causes the runtime to release COM references when the JVM shuts down
normally like when Ctrl- C is pressed
|
static void |
setVersionAndInitialize() |
static void |
trackObjectsInCurrentThread()
Tell the runtime to remember all objects used in the current thread.
|
public static boolean isInitVisualBeans
public static boolean noMTASTACommunication
public static boolean setVersion
public void setBeanUsage(boolean beanUsage)
beanUsage
- set to true
if visual ArcEngine java
beans are to be usedpublic void setNativeMode(boolean nativeMode)
nativeMode
- set to true
if native mode is to
be used.public void setShutdownHook(boolean shutdownHook)
shutdownHook
- set to true
if shutdownHook is to
be enabled.public void setEngineUsage()
init()
method
should be called to actually initialize the ArcObjects for Java with these optionspublic void init()
setXxx()
methods.public static void initializeEngine()
public static void initLicensing(int product, java.lang.String pathToBin)
public static void initializeServer(int productCode)
public static void initializePro(int productCode)
public static void initializeVisualBeans()
initializeEngine
public static void setVersionAndInitialize()
public static void setDefault(java.lang.String domain, java.lang.String user, java.lang.String password)
domain
- - the domain to be used when authenticating using default authentificationuser
- - the user to be used when authenticating using default authentificationpassword
- - the password to be used when authenticating using default authentificationpublic static void release(java.lang.Object anObject)
public static void releaseAll()
public static void releaseAllInCurrentThread()
public static void trackObjectsInCurrentThread()