com.esri.arcgis.server
Class ServerObjectFactory

java.lang.Object
  extended by com.esri.arcgis.server.ServerObjectFactory
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IServerObjectFactory, Serializable

public class ServerObjectFactory
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IServerObjectFactory

The factory object used to create server objects in the server.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
ServerObjectFactory()
          Constructs a ServerObjectFactory using ArcGIS Engine.
ServerObjectFactory(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ServerObjectFactory theServerObjectFactory = (ServerObjectFactory) obj;
 
Method Summary
 IServerObject createServerObject(String cLSID, String cfgName, String cfgType)
          Creates a server object outside of the server environment.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 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

ServerObjectFactory

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

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

ServerObjectFactory

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

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

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

createServerObject

public IServerObject createServerObject(String cLSID,
                                        String cfgName,
                                        String cfgType)
                                 throws IOException,
                                        AutomationException
Creates a server object outside of the server environment.

Product Availability

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

Specified by:
createServerObject in interface IServerObjectFactory
Parameters:
cLSID - The cLSID (in)
cfgName - The cfgName (in)
cfgType - The cfgType (in)
Returns:
A reference to a com.esri.arcgis.server.IServerObject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.