Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
org.mozilla.xpcom.internal.XPCOMImpl Class Reference
Inheritance diagram for org.mozilla.xpcom.internal.XPCOMImpl:
Inheritance graph
[legend]
Collaboration diagram for org.mozilla.xpcom.internal.XPCOMImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 50 of file XPCOMImpl.java.


Member Function Documentation

Public Method to access to the component manager.

Returns:
the component manager
Exceptions:
XPCOMException

Implements org.mozilla.xpcom.IXPCOM.

Public Method to access to the component registration manager.

Returns:
the component registration manager
Exceptions:
XPCOMException

Implements org.mozilla.xpcom.IXPCOM.

Public Method to access to the service manager.

Returns:
the service manager
Exceptions:
XPCOMException

Implements org.mozilla.xpcom.IXPCOM.

nsIServiceManager org.mozilla.xpcom.internal.XPCOMImpl.initXPCOM ( File  aMozBinDirectory,
IAppFileLocProvider  aAppFileLocProvider 
) [inline]

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.

Implements org.mozilla.xpcom.IXPCOM.

Definition at line 52 of file XPCOMImpl.java.

                                                   {
    return initXPCOMNative(aMozBinDirectory, aAppFileLocProvider);
  }

Here is the call graph for this function:

native nsIServiceManager org.mozilla.xpcom.internal.XPCOMImpl.initXPCOMNative ( File  aMozBinDirectory,
IAppFileLocProvider  aAppFileLocProvider 
)

Here is the caller graph for this function:

native nsILocalFile org.mozilla.xpcom.internal.XPCOMImpl.newLocalFile ( String  aPath,
boolean  aFollowLinks 
)

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)

Implements org.mozilla.xpcom.IXPCOM.

native void org.mozilla.xpcom.internal.XPCOMImpl.shutdownXPCOM ( nsIServiceManager  aServMgr)

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

Implements org.mozilla.xpcom.IXPCOM.


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