Interface nsIComponentRegistrarType

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

  • autoRegister

    Register a .manifest file, or an entire directory containing these files. Registration lasts for this run only, and is not cached.

    Note

    Formerly this method would register component files directly. This is no longer supported.

    Parameters

    • aSpec: nsIFile

    Returns void

  • contractIDToCID

    Returns the CID for a given Contract ID, if one exists and is registered.

    Returns

    : Contract ID.

    Parameters

    • aContractID: string

    Returns nsCIDPtr

  • isCIDRegistered

    Returns true if a factory is registered for the CID.

    Returns

    : true if a factory is registered for CID false otherwise.

    Parameters

    • aClass: object

      : CID queried for registeration

    Returns boolean

  • isContractIDRegistered

    Returns true if a factory is registered for the contract id.

    Returns

    : true if a factory is registered for contract id false otherwise.

    Parameters

    • aContractID: string

    Returns boolean

  • registerFactory

    Register a factory with a given ContractID, CID and Class Name.

    Parameters

    • aClass: object

      : CID of object

    • aClassName: string

      : Class Name of CID (unused)

    • aContractID: string

      : ContractID associated with CID aClass. May be null if no contract ID is needed.

    • aFactory: nsIFactory

      : Factory that will be registered for CID aClass. If aFactory is null, the contract will be associated with a previously registered CID.

    Returns void

  • unregisterFactory

    Unregister a factory associated with CID aClass.

    Throws

    NS_ERROR* Method failure.

    Parameters

    • aClass: object

      : CID being unregistered

    • aFactory: nsIFactory

      : Factory previously registered to create instances of CID aClass.

    Returns void

Generated using TypeDoc