Mozilla.com

  1. MDC
  2. Main Page
  3. nsIComponentRegistrar
  4. registerFactoryLocation
Table of contents
  1. 1. Summary
  2. 2. Parameters
Table of contents
  1. 1. Summary
  2. 2. Parameters

« XPCOM API Reference

Summary

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.

void registerFactoryLocation(
  in nsCIDRef aClassID,
  in string aClassName,
  in string aContractID,
  in nsIFile aFile,
  in string aLoaderStr,
  in string aType
);

Parameters

aClassID
[in] The ClassID of the class being registered.
aClassName
[in] The name of the class being registered. This value is intended as a human-readable name for the class and need not be globally unique.
aContractID
[in] The ContractID of the class being registered.
aFile
[in] A component file. This file must have an associated loader and export the required symbols, which the loader specifies.
aLoaderStr
[in] Opaque loader specific string. This value is passed into the nsIModule's registerSelf callback and must be fowarded unmodified when registering factories via their location.
aType
[in] Component Type of aClass. This value is passed into the nsIModule's registerSelf callback and must be fowarded unmodified when registering factories via their location.

Page last modified 01:25, 9 Nov 2005 by DarinFisher

Files (0)