Replies: 1 comment 1 reply
-
Something like an optional requiroment? We have this for optionale scr compinents. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Things like
RequireConfigurationAdmin
,RequireServiceComponentRuntime
, ... are already a good way to express a strict requirement.In some cases it might be good to be not that strict, but more express that the bundle wants something if available, to help the resolver e.g. see https://docs.osgi.org/specification/osgi.core/8.0.0/service.resolver.html#d0e50371 it says:
So my idea would be to have a corresponding set of
Wants...
annotations that simply set the resolution to optional, so I can tell the resolver I want it if it can be found but can also work (maybe with limited features) without it.Beta Was this translation helpful? Give feedback.
All reactions