mcoffin / rogue

OSGi container (karaf distribution) for FRC
Apache License 2.0
0 stars 0 forks source link

Dependencies should be reinjected when services are updated #13

Closed mcoffin closed 9 years ago

mcoffin commented 9 years ago

Right now, injected dependencies just become out of date when services are (re)registered.

Dependencies should be updated somehow when services are (re)registered.

mcoffin commented 9 years ago

Potentially, it might be the best idea to restart all bundles with dependencies on a service when the service is redeployed?

mcoffin commented 9 years ago

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?).