com.esri.arcgis.system
Class EnvironmentManager

java.lang.Object
  extended by com.esri.arcgis.system.EnvironmentManager
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IEnvironmentManager, Serializable

public class EnvironmentManager
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IEnvironmentManager

Singleton object that manages different environments (collections of configuration information).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Singleton:

This type is a singleton.

See Also:
Serialized Form

Constructor Summary
EnvironmentManager()
          Constructs a EnvironmentManager using ArcGIS Engine.
EnvironmentManager(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
EnvironmentManager theEnvironmentManager = (EnvironmentManager) obj;
 
Method Summary
 void addEnvironment(IUID pGuid, Object pUnk)
          Adds an environment.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 Object getEnvironment(IUID pGuid)
          Retrieves an environment.
 int hashCode()
          the hashcode for this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

EnvironmentManager

public EnvironmentManager()
                   throws IOException,
                          UnknownHostException
Constructs a EnvironmentManager using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

EnvironmentManager

public EnvironmentManager(Object obj)
                   throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
EnvironmentManager theEnvironmentManager = (EnvironmentManager) obj;

Construct a EnvironmentManager using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to EnvironmentManager.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getEnvironment

public Object getEnvironment(IUID pGuid)
                      throws IOException,
                             AutomationException
Retrieves an environment.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getEnvironment in interface IEnvironmentManager
Parameters:
pGuid - A reference to a com.esri.arcgis.system.IUID (in)
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addEnvironment

public void addEnvironment(IUID pGuid,
                           Object pUnk)
                    throws IOException,
                           AutomationException
Adds an environment.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
addEnvironment in interface IEnvironmentManager
Parameters:
pGuid - A reference to a com.esri.arcgis.system.IUID (in)
pUnk - A reference to another Object (IUnknown) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.