Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
org.mozilla.xpcom.IXPCOM Interface Reference
Inheritance diagram for org.mozilla.xpcom.IXPCOM:
Inheritance graph
[legend]

List of all members.

Public Member Functions

nsIServiceManager initXPCOM (File aMozBinDirectory, IAppFileLocProvider aAppFileLocProvider) throws XPCOMException
 Initializes XPCOM.
void shutdownXPCOM (nsIServiceManager aServMgr) throws XPCOMException
 Shutdown XPCOM.
nsIServiceManager getServiceManager () throws XPCOMException
 Public Method to access to the service manager.
nsIComponentManager getComponentManager () throws XPCOMException
 Public Method to access to the component manager.
nsIComponentRegistrar getComponentRegistrar () throws XPCOMException
 Public Method to access to the component registration manager.
nsILocalFile newLocalFile (String aPath, boolean aFollowLinks) throws XPCOMException
 Public Method to create an instance of a nsILocalFile.

Detailed Description

Definition at line 48 of file IXPCOM.java.


Member Function Documentation

Public Method to access to the component manager.

Returns:
the component manager
Exceptions:
XPCOMException

Implemented in org.mozilla.xpcom.Mozilla, and org.mozilla.xpcom.internal.XPCOMImpl.

Here is the caller graph for this function:

Public Method to access to the component registration manager.

Returns:
the component registration manager
Exceptions:
XPCOMException

Implemented in org.mozilla.xpcom.Mozilla, and org.mozilla.xpcom.internal.XPCOMImpl.

Here is the caller graph for this function:

Public Method to access to the service manager.

Returns:
the service manager
Exceptions:
XPCOMException

Implemented in org.mozilla.xpcom.Mozilla, and org.mozilla.xpcom.internal.XPCOMImpl.

Here is the caller graph for this function:

nsIServiceManager org.mozilla.xpcom.IXPCOM.initXPCOM ( File  aMozBinDirectory,
IAppFileLocProvider  aAppFileLocProvider 
) throws XPCOMException

Initializes XPCOM.

You must call this method before proceeding to use XPCOM.

Parameters:
aMozBinDirectoryThe directory containing the component registry and runtime libraries; or use null to use the working directory.
aAppFileLocProviderThe object to be used by Gecko that specifies to Gecko where to find profiles, the component registry preferences and so on; or use null for the default behaviour.
Returns:
the service manager
Exceptions:
XPCOMException
  • NS_ERROR_NOT_INITIALIZED - if static globals were not initialied, which can happen if XPCOM is reloaded, but did not completly shutdown.
  • Other error codes indicate a failure during initialisation.

Implemented in org.mozilla.xpcom.Mozilla, and org.mozilla.xpcom.internal.XPCOMImpl.

Here is the caller graph for this function:

nsILocalFile org.mozilla.xpcom.IXPCOM.newLocalFile ( String  aPath,
boolean  aFollowLinks 
) throws XPCOMException

Public Method to create an instance of a nsILocalFile.

Parameters:
aPathA string which specifies a full file path to a location. Relative paths will be treated as an error (NS_ERROR_FILE_UNRECOGNIZED_PATH).
aFollowLinksThis attribute will determine if the nsLocalFile will auto resolve symbolic links. By default, this value will be false on all non unix systems. On unix, this attribute is effectively a noop.
Returns:
an instance of an nsILocalFile that points to given path
Exceptions:
XPCOMException
  • NS_ERROR_FILE_UNRECOGNIZED_PATH - raised for unrecognized paths or relative paths (must supply full file path)

Implemented in org.mozilla.xpcom.Mozilla, and org.mozilla.xpcom.internal.XPCOMImpl.

Here is the caller graph for this function:

void org.mozilla.xpcom.IXPCOM.shutdownXPCOM ( nsIServiceManager  aServMgr) throws XPCOMException

Shutdown XPCOM.

You must call this method after you are finished using xpcom.

Parameters:
aServMgrThe service manager which was returned by initXPCOM. This will release servMgr.
Exceptions:
XPCOMExceptionif a failure occurred during termination

Implemented in org.mozilla.xpcom.Mozilla, and org.mozilla.xpcom.internal.XPCOMImpl.

Here is the caller graph for this function:


The documentation for this interface was generated from the following file: