Visit Mozilla.org

nsIModule

From MDC

« XPCOM API Reference

[edit] Summary

The nsIModule interface must be implemented by each XPCOM component. It is the main entry point by which the system accesses an XPCOM component.

#include "nsIModule.h"

[scriptable, uuid=(7392D032-5371-11d3-994E-00805FD26FEE)]
interface nsIModule : nsISupports { ... };

[edit] Methods

getClassObject
This method returns a class object for a given ClassID and IID.
registerSelf
When the nsIModule is discovered, this method will be called so that any setup registration can be performed.
unregisterSelf
When the nsIModule is being unregistered, this method will be called so that any cleanup can be performed.
canUnload
This method may be queried to determine whether or not the component module can be unloaded by XPCOM.

[edit] History

This interface was finalized for Mozilla 0.9.9. See bug 99154 for details.