Shouldn't EventHook let you filter a collection of listeners (something like
ListenerHook.ListenerInfo) instead of contexts? That would enable you to
examine the listener's filter and only let it see services based on a
certain property. My case is that I want to control service visibility
between customers of an application i.e.
(customer.token=4kj53j-34kl3-some-token-234a). I want customers to share
bundles but use their own services through ManagedServiceFactory. Is there
another recommended way to achieve that?

In any case, isn't it arguable that the EventHook would let you filter
listeners instead of bundles?

Best regards
Andreas Karlsson
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to