WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIComponentManager

IID:a88e5a60-205a-4bb1-94e1-2628daf51eae
Inherits From:nsISupports

Methods

void createInstance ( nsCIDRef class , nsISupports delegate , nsIIDRef IID , out nsQIResult* result ) void createInstanceByContractID ( char* contractID , nsISupports delegate , nsIIDRef IID , out nsQIResult* result ) void getClassObject ( nsCIDRef class , nsIIDRef IID , out nsQIResult* result ) void getClassObjectByContractID ( char* contractID , nsIIDRef IID , out nsQIResult* result )

void createInstance ( nsCIDRef class , nsISupports delegate , nsIIDRef IID , out nsQIResult* result )

Create an instance of the CID class and return the interface iID.

Arguments:
class: : ClassID of object instance requested
delegate: : Used for aggregation
IID: : IID of interface requested
result

void createInstanceByContractID ( char* contractID , nsISupports delegate , nsIIDRef IID , out nsQIResult* result )

Create an instance of the CID that implements contractID and return the interface iID.

Arguments:
contractID: : contractID of object instance requested
delegate: : Used for aggregation
IID: : IID of interface requested
result

void getClassObject ( nsCIDRef class , nsIIDRef IID , out nsQIResult* result )

Returns the factory object that can be used to create instances of CID class

Arguments:
class: The classid of the factory that is being requested
IID
result

void getClassObjectByContractID ( char* contractID , nsIIDRef IID , out nsQIResult* result )

Returns the factory object that can be used to create instances of CID class

Arguments:
contractID
IID
result

References

This interface is the type of the following properties:

nsIXPCComponents.manager

This interface is passed as an argument to the following methods:

nsIModule.canUnload, nsIModule.getClassObject, nsIModule.registerSelf, nsIModule.unregisterSelf

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com