nsIComponentLoader

IID:c073cfc0-567c-11d3-aec1-0000f8e25c06
Inherits From:nsISupports

Constants

When is AutoRegistration occuring?
PRInt32 Startup = 0
PRInt32 Component = 1
PRInt32 Timer = 2

Methods

PRBool autoRegisterComponent ( PRInt32 when , nsIFile component ) void autoRegisterComponents ( PRInt32 when , nsIFile directory ) PRBool autoUnregisterComponent ( PRInt32 when , nsIFile component ) nsIFactory getFactory ( nsIIDRef CID , char* location , char* type ) void init ( nsIComponentManager compMgr , nsISupports registry ) void onRegister ( nsIIDRef CID , char* type , char* className , char* contractID , char* location , PRBool replace , PRBool persist ) PRBool registerDeferredComponents ( PRInt32 when ) void unloadAll ( PRInt32 when )

PRBool autoRegisterComponent ( PRInt32 when , nsIFile component )

AutoRegister the given component.

Returns true if the component was registered, false if it couldn't attempt to register the component (wrong type) and ``throws'' an NS_FAILED code if there was an error during registration.

Arguments:
when
component

void autoRegisterComponents ( PRInt32 when , nsIFile directory )

AutoRegister components in the given directory.

Arguments:
when
directory

PRBool autoUnregisterComponent ( PRInt32 when , nsIFile component )

AutoUnregister the given component. Returns true if the component was unregistered, false if it coudln't attempt to unregister the component (not found, wrong type).

Arguments:
when
component

nsIFactory getFactory ( nsIIDRef CID , char* location , char* type )

Get the factory for a given component.

Arguments:
CID
location
type

void init ( nsIComponentManager compMgr , nsISupports registry )

Initialize the loader.

We use nsISupports here because nsIRegistry isn't IDLized yet.

Arguments:
compMgr
registry

void onRegister ( nsIIDRef CID , char* type , char* className , char* contractID , char* location , PRBool replace , PRBool persist )

Called when a component of the appropriate type is registered, to give the component loader an opportunity to do things like annotate the registry and such.

Arguments:
CID
type
className
contractID
location
replace
persist

PRBool registerDeferredComponents ( PRInt32 when )

Register any deferred (NS_ERROR_FACTORY_REGISTER_AGAIN) components. Return registered-any-components?

Arguments:
when

void unloadAll ( PRInt32 when )

Unload all components that are willing.

Arguments:
when

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com