com.esri.arcgis.geodatabase
Interface IClassExtension

All Superinterfaces:
Serializable
All Known Implementing Classes:
AnnotationFeatureClassExtension, DimensionClassExtension, GeocodedFeatureClassExtension, GeocodingIndexClassExtension, SoundexTableClassExtension

public interface IClassExtension
extends Serializable

Provides access to members that initialize and shutdown the class extension.

Description

Required interface for class extensions. Class extensions should implement behavior that pertains to a specific object or feature class in a geodatabase.

When To Use

IClassExtension should be implemented by all object class and feature class extensions.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 void init(IClassHelper pClassHelper, IPropertySet pExtensionProperties)
          Initializes the extension, passing in a reference to its class helper.
 void shutdown()
          Informs the extension that its class helper is going away.
 

Method Detail

init

void init(IClassHelper pClassHelper,
          IPropertySet pExtensionProperties)
          throws IOException,
                 AutomationException
Initializes the extension, passing in a reference to its class helper.

Remarks

If a reference to the class is required by other class extension members, the class helper should be stored in a member variable. Storing an object or feature class directly within a class extension is strongly discouraged.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
classHelper - A reference to a com.esri.arcgis.geodatabase.IClassHelper (in)
extensionProperties - 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.

shutdown

void shutdown()
              throws IOException,
                     AutomationException
Informs the extension that its class helper is going away.

Remarks

Shutdown is called when the extension's class is cleared from the client's memory, or when the extension is removed from the class. Note that if a class is deleted from a geodatabase, it may remain in memory, so this should not be relied upon for behavior that should be triggered by a class' deletion.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.