nsISupports
Last changed in Gecko 1.0 void autoRegister(in nsIFile aSpec); |
void autoUnregister(in nsIFile aSpec); |
string CIDToContractID(in nsCIDRef aClass); |
nsCIDPtr contractIDToCID(in string aContractID); |
nsISimpleEnumerator enumerateCIDs(); |
nsISimpleEnumerator enumerateContractIDs(); |
boolean isCIDRegistered(in nsCIDRef aClass); |
boolean isContractIDRegistered(in string aContractID); |
void registerFactory(in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFactory aFactory); |
void registerFactoryLocation(in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFile aFile, in string aLoaderStr, in string aType); |
void unregisterFactory(in nsCIDRef aClass, in nsIFactory aFactory); |
void unregisterFactoryLocation(in nsCIDRef aClass, in nsIFile aFile); |
Register a component (.manifest) file or all component files in a directory. Registration lasts for this run only, and is not cached.
Component files must have an associated loader and export the required symbols which this loader defines. For example, if the given file is a native library, it must export the symbol NSGetModule. Other loaders may have different semantics.
This method may only be called from the main thread.
void autoRegister( in nsIFile aSpec );
aSpecThis parameter indicates either a component file to be registered or a directory containing component files to be registered.
XPCOM <= 1.8: If aSpec is null, then the application component's directory as defined by NS_XPCOM_COMPONENT_DIR will be registered. See nsDirectoryService.
NS_GRE_DIR, NS_XPCOM_COMPONENT_DIR, and NS_XPCOM_COMPONENT_DIR_LIST in nsDirectoryService.Unregister a component file or all component files in a directory.
This method may only be called from the main thread.
void autoUnregister( in nsIFile aSpec );
aSpecNS_XPCOM_COMPONENT_DIR will be unregistered. See nsDirectoryService.This method returns the ContractID corresponding to a given ClassID.
string CIDToContractID( in nsCIDRef aClass );
aClassThe ContractID corresponding to aClassID if one exists and is registered.
Returns the ClassID for a given ContractID, if one exists and is registered.
nsCIDPtr contractIDToCID( in string aContractID );
aContractIDThe ClassID corresponding to aContractID if one exists and is registered.
This method returns an enumerator over the list of registered ClassIDs.
Elements of the enumeration can be QueryInterfaced for the nsISupportsID interface. From the nsISupportsID, you can obtain the actual ClassID.
nsISimpleEnumerator enumerateCIDs();
None.
An nsISimpleEnumerator over the list of registered classes. Elements of the enumerator implement nsISupportsID.
This method returns an enumerator over the list of registered ContractIDs.
Elements of the enumeration can be QueryInterfaced for the nsISupportsCString interface. From the nsISupportsCString interface, you can obtain the actual ContractID string.
nsISimpleEnumerator enumerateContractIDs();
None.
An nsISimpleEnumerator over the list of registered classes. Elements of the enumerator implement nsISupportsCString.
This method is used to test for the existence of a specific ClassID.
boolean isCIDRegistered( in nsCIDRef aClass );
aClasstrue if a factory is registered for the ClassID, false otherwise.
This method is used to test for the existence of a class implementing a specific ContractID.
boolean isContractIDRegistered( in string aContractID );
aContractIDtrue if a factory is registered for the ContractID, false otherwise.
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.
void registerFactory( in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFactory aFactory );
aClassaClassNameaContractIDnull if no ContractID is needed.aFactorynsIFactory instance of the class being registered. If aFactory is null, the contract will be associated with a previously registered ClassID.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 aClass, in string aClassName, in string aContractID, in nsIFile aFile, in string aLoaderStr, in string aType );
aClassaClassNameaContractIDaFileaLoaderStrnsIModule.registerSelf() callback and must be forwarded unmodified when registering factories via their location.aTypensIModule.registerSelf() callback and must be forwarded unmodified when registering factories via their location.Unregister a factory associated with a particular class identified by ClassID.
void unregisterFactory( in nsCIDRef aClass, in nsIFactory aFactory );
aClassaFactorynsIFactory instance of the class being unregistered.Unregisters the factory associated with a given ClassID and component file location.
void unregisterFactoryLocation( in nsCIDRef aClass, in nsIFile aFile );
aClassaFileThis interface was finalized (frozen) for Gecko 1.0. See bug 115853 for details. From Gecko 2.0 interfaces are no longer frozen.