Need a ServiceFactory equivalence for service exporting
mcculls opened this issue · 1 comments
mcculls commented
Originally reported on Google Code with ID 52
In OSGi framework, we can register a bundle-aware service by registering a service with
ServiceFactory, which provide a Bundle parameter in getter method.
But Guice do not provide such a mechanism, since it is not a OSGi-compatible framework.
Is it possible for Peaberry to fill this gap with an additional binding to ServiceFactory,
as well as the classic binding to Provider of Guice?
Reported by oasisfeng
on 2010-07-14 09:09:33
mcculls commented
In most cases such an additional ServiceFactory binding won't be required, and in some
cases people might want to supply their own binding. So on reflection I think it's
better to leave this up to the user - if they want such a binding they can always add
it themselves, by taking advantage of Guice's linked binding support or by using provider
methods: http://code.google.com/p/google-guice/wiki/ProvidesMethods (since the bundle
should have the context bound and available for injection).
Reported by mcculls
on 2012-08-04 21:47:56
- Status changed:
WontFix