Closed mcoffin closed 9 years ago
Potentially, it might be the best idea to restart all bundles with dependencies on a service when the service is redeployed?
Likely, the solution here is to use Provider<...>
for injected services and then never cache the result of provider.get()
for all services that we wish to keep up to date with hot-swapped implementations.
If we choose this solution though, we should document this functionality somewhere (wiki? readme?).
Right now, injected dependencies just become out of date when services are (re)registered.
Dependencies should be updated somehow when services are (re)registered.