com.esri.arcgis.server
Class ConfigFactory

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

public class ConfigFactory
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IConfigurationFactory

The Configuration Factory object for implementing server object configuration events.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
ConfigFactory()
          Constructs a ConfigFactory using ArcGIS Engine.
ConfigFactory(Object obj)
          Construct a ConfigFactory using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 IPropertySet onAdd(IServerObjectAdmin pAdmin, IPropertySet pProps)
          Is called when the configuration is added.
 void onRemove()
          Is called when the configuration is removed.
 void onStart(IServerObjectAdmin pAdmin, IPropertySet props)
          Is called when the configuration is started.
 void onStop(IServerObjectAdmin pAdmin, IPropertySet props)
          Is called when the configuration is stopped.
 
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

ConfigFactory

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

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

ConfigFactory

public ConfigFactory(Object obj)
              throws IOException
Construct a ConfigFactory using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to ConfigFactory.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems ConfigFactory theConfigFactory = (ConfigFactory) obj;
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

onAdd

public IPropertySet onAdd(IServerObjectAdmin pAdmin,
                          IPropertySet pProps)
                   throws IOException,
                          AutomationException
Is called when the configuration is added.

Product Availability

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

Specified by:
onAdd in interface IConfigurationFactory
Parameters:
pAdmin - A reference to a com.esri.arcgis.server.IServerObjectAdmin (in)
pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)
Returns:
A reference to a com.esri.arcgis.system.IPropertySet
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onRemove

public void onRemove()
              throws IOException,
                     AutomationException
Is called when the configuration is removed.

Product Availability

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

Specified by:
onRemove in interface IConfigurationFactory
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onStart

public void onStart(IServerObjectAdmin pAdmin,
                    IPropertySet props)
             throws IOException,
                    AutomationException
Is called when the configuration is started.

Product Availability

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

Specified by:
onStart in interface IConfigurationFactory
Parameters:
pAdmin - A reference to a com.esri.arcgis.server.IServerObjectAdmin (in)
props - A reference to a com.esri.arcgis.system.IPropertySet (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onStop

public void onStop(IServerObjectAdmin pAdmin,
                   IPropertySet props)
            throws IOException,
                   AutomationException
Is called when the configuration is stopped.

Product Availability

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

Specified by:
onStop in interface IConfigurationFactory
Parameters:
pAdmin - A reference to a com.esri.arcgis.server.IServerObjectAdmin (in)
props - A reference to a com.esri.arcgis.system.IPropertySet (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.