On 9 October 2013 16:51, Richard S. Hall <[email protected]> wrote: > This is precisely why I was against the adapt() method ever being added to > the spec in the first place since it creates a secondary registry of > service-like objects. Why not just have an extender register a service that > has a getMoreInfo(Bundle) method on it? :-) > > -> richard
I was thinking something similar :) There are a number of issues with adapt() and I think that its use should be avoided if at all possible. It has its reasons for existence in the core spec, but I would recommend to use the Service Registry for any new specs if possible... Cheers, David _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
