Interface nsIComponentManagerType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • addBootstrappedManifestLocation

    Adds a bootstrapped manifest location on runtime.

    Parameters

    • aLocation: nsIFile

      : A directory where chrome.manifest resides, or an XPI with it on the root.

    Returns void

  • createInstance

    Create an instance of the CID aClass and return the interface aIID.

    Parameters

    • aClass: object

      : ClassID of object instance requested

    • aIID: object

      : IID of interface requested

    • result: object

    Returns void

  • createInstanceByContractID

    Create an instance of the CID that implements aContractID and return the interface aIID.

    Parameters

    • aContractID: string

      : aContractID of object instance requested

    • aIID: object

      : IID of interface requested

    • result: object

    Returns void

  • getClassObject

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

    Parameters

    • aClass: object

      The classid of the factory that is being requested

    • aIID: object
    • result: object

    Returns void

  • getClassObjectByContractID

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

    Parameters

    • aContractID: string
    • aIID: object
    • result: object

    Returns void

  • Returns a list of ESM URLs which are used to create components. This should only be used in automation.

    Returns nsIUTF8StringEnumerator

  • Returns a list of JSM URLs which are used to create components. This should only be used in automation.

    Returns nsIUTF8StringEnumerator

  • getManifestLocations

    Get an array of nsIURIs of all registered and builtin manifest locations.

    Returns nsIArray

  • removeBootstrappedManifestLocation

    Removes a bootstrapped manifest location on runtime.

    Parameters

    • aLocation: nsIFile

      : A directory where chrome.manifest resides, or an XPI with it on the root.

    Returns void

Generated using TypeDoc