-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declare osgi.serviceloader.registrar
requirement as optional
#155
Declare osgi.serviceloader.registrar
requirement as optional
#155
Conversation
Sounds good, will merge for 6.3.1. |
osgi.serviceloader.registrar
requirement as optional
Merged; I will try to get 6.3.1 release out in near future, given that this can avoid awkward upgrade experiences that users like @selundqma have had :) |
Sigh. Looks like this just causes issues through-out non-OSGi Java realm. And I will probably need to revert this from 6.5.0. |
I've had a chat with the Bnd developers, and they reckon they can modify their annotations to use |
@chrisr3 That would be great. |
Actually, this isn't ''strictly'' true in more recent versions of SPI-Fly. Because the lack of the necessary osgi.serviceloader.registrar property was a common problem, @rotty3000 added a configurable override so that you can manually configure SPI-Fly to treat certain bundles as if they had the necessary provider/consumer metadata. See Dynamic weaving by auto properties. However, it is still better to have the bundle declare its own requirements, rather than throw that responsibility back onto the pour soul trying to assemble the application...
Agree. 😄 |
The
osgi.serviceloader.registrar
requirement is satisfied by Apache Aries SPI-Fly, andjava.util.ServiceLoader
cannot work inside an OSGi framework without it.However, it is probably better to allow people to discover a need for SPI-Fly themselves rather that throwing bundle resolution errors at them when they upgrade
woodstox-core
😊.