felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Meschberger <fmesc...@adobe.com>
Subject Re: Bundle activator error event
Date Mon, 08 Dec 2014 14:20:03 GMT
Hi

The framework logs the error and returns null from the BundleContext.getService(ServiceReference)
call.

Also from the BundleContext.getService JavaDoc:

> Returns: A service object for the service associated with reference or null if the service
is not registered, the service object returned by a ServiceFactory does not implement the
classes under which it was registered or the ServiceFactory threw an exception.


Regards
Felix

> Am 08.12.2014 um 14:58 schrieb Benson Margulies <benson@basistech.com>:
> 
> If an ServiceFactory getService method throws a RuntimeException, how
> is the event routed?
> 
> Or, what's a reasonable way for such a method to complain, and how
> should an application be sensitive to such complaints?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message