Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

DS: Allow conditions for a class being available to the classloader #48

Open
kwin opened this issue Nov 16, 2020 · 1 comment
Open

DS: Allow conditions for a class being available to the classloader #48

kwin opened this issue Nov 16, 2020 · 1 comment
Labels
publiccomment Public comment

Comments

@kwin
Copy link

kwin commented Nov 16, 2020

Sometimes DS implementations should only become active if certain classes can be loaded. Usually this is determined while the service is retrieved (i.e. BundleContext.getService() is being called). It would be beneficial to prevent the service registration altogether in that case (e.g. to allow a fallback implementation of the same service take its place).

@kwin kwin added the publiccomment Public comment label Nov 16, 2020
@bjhargrave
Copy link
Member

DS 1.5 will have Condition support. So anyone can author such a condition and make a component dependent upon it. I don't think we want to bake many different condition implementations into DS. DS will support the Condition primitive and then people can built upon it as they need.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
publiccomment Public comment
Projects
None yet
Development

No branches or pull requests

2 participants