Bug 334558 - Document throwing behaviour of nsIServiceManager::isServiceInstantiated* methods. r=bsmedberg

This commit is contained in:
Cykesiopka 2013-07-10 14:57:34 -04:00
parent 5c6a3e7028
commit 90159cbd3a

View File

@ -45,12 +45,14 @@ interface nsIServiceManager : nsISupports
* isServiceInstantiated
*
* isServiceInstantiated will return a true if the service has already
* been created, otherwise false
* been created, or throw otherwise
*
* @param aClass or aContractID : aClass or aContractID of object
* instance requested
* @param aIID : IID of interface requested
* @param aIID : IID of interface requested
* @throws NS_ERROR_SERVICE_NOT_AVAILABLE if the service hasn't been
* instantiated
* @throws NS_NOINTERFACE if the IID given isn't supported by the object
*/
boolean isServiceInstantiated(in nsCIDRef aClass, in nsIIDRef aIID);
boolean isServiceInstantiatedByContractID(in string aContractID, in nsIIDRef aIID);