Visit Mozilla.org

nsIComponentRegistrar

From MDC

« XPCOM API Reference

[edit] Summary

The nsIComponentRegistrar interface provides methods to access and modify the XPCOM component registry.

#include "nsIComponentRegistrar.h"
 
[scriptable, uuid=(2417cbfe-65ad-48a6-b4b6-eb84db174392)]
interface nsIComponentRegistrar : nsISupports { ... };

[edit] Methods

autoRegister
Register a component file or all component files in a directory.
autoUnregister
Unregister a component file or all component files in a directory.
registerFactory
Registers a factory to be used to instantiate a particular class identified by ClassID, and creates an association of class name and ContractID with the class.
unregisterFactory
Unregisters a factory associated with a particular class identified by ClassID.
registerFactoryLocation
Registers a factory to be used to instantiate a particular class identified by ClassID, and creates an association of class name and ContractID with the class. However, unlike registerFactory, the location of the component containing the factory implementation is specified instead of the factory instance.
unregisterFactoryLocation
Unregisters the factory associated with a given ClassID and component file location.
isCIDRegistered
This method is used to test for the existance of a specific ClassID.
isContractIDRegistered
This method is used to test for the existance of a class implementing a specific ContractID.
enumerateCIDs
This method returns an enumerator over the list of registered ClassIDs.
enumerateContractIDs
This method returns an enumerator over the list of registered ContractIDs.
CIDToContractID
This method returns the ContractID corresponding to a given ClassID.
contractIDToCID
This method returns the ContractID corresponding to a given ClassID.

[edit] History

This interface was finalized for Mozilla 1.0. See bug 115853 for details.