Hi, a newbie question about ServiceFactory. I cannot seem to find any guideline what the behaviour is supposed to be when the details of getService() fail and I have an exception on my hands inside the factory. Should it:
1) propagate the exception and let the framework handle it - if so, how? will it turn the exception into a returned null to ServiceTracker, BundleContext.getService() etc.? 2) return null itself 3) do something else? So far I could find all three approaches "in the wild", which tells me there's something missing. ServiceException has 2 types for factory failures, but it's not clear from either the docs or the spec who creates this exception exactly when or why. To quote: "..the framework or user code.." :-) Will be grateful for advice or RTFM pointers. Holger _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
