Starting a new fresh thread, as the old one is pretty much tangled up
with a bunch of useless tracking-impl info.
OK, I have cleaned up OSGi MC Facade to work directly off ContextTracker and
* OSGiManager registeredServices --> controller/context queries
* AbstractBundleState servicesInUse --> context tracker getUsedContexts
* OSGiServiceState usedBundles --> context tracker getUsers(this)
I currently just imitated previous behavior,
explicitly using just OSGi notions - no non-OSGi+MC context usage yet.
So my question is:
(a) how do we handle non-OSGi context in OSGi Facade
(b) how do we handle OSGi services with additional properties in non-OSGi
I guess (b) should be simple.
e.g. as we already discussed, put service's properties into MDR/Instance
and allow for context filtering based on those properties.
But otherwise the plain usage should be type matching, on exposed service's classes.
What about (a)?
What is MC POJO's bundle?
I guess this is why every deployment has OSGiBundleState, which is what we should return /
And I guess this - JBDEPLOY-65 - is needed to make a mapping from context to deployment
unit --> OSGiBundleState?
View the original post :
Reply to the post :