Methods

canUnload()

This method may be queried to determine whether or not the component module can be unloaded by XPCOM.

boolean canUnload(
in nsIComponentManager aCompMgr
);

Parameters

aCompMgr

The global component manager.

Return value

Indicates to the caller whether or not the component module can be unloaded. Returning true is not a guarantee that the module will be unloaded. It constitues only willingness of the module to be unloaded. It is very important to ensure that no outstanding references to the module's code/data exist before returning true. Returning false guaratees that the module will not be unloaded.

If the component module is native (that is, as part of a DLL), then this method may be called to determine whether or not the DLL may be unloaded from memory.

Note: As of Gecko 1.7, native component modules are never unloaded.

getClassObject()

Obtains a Class Object from a nsIModule for a given CID and IID pair. This class object can either be query to a nsIFactory or a may be query to a nsIClassInfo.