Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Testing OSGi Mock 3.3.8
-
None
Description
The OSGi R8 Declarative Services specification allows a component's field of type Optional to be annotated with @Reference. In this case the cardinality defaults to OPTIONAL and depending on the presence of the service an empty Optional, or an Optional holding the service, is injected.
Injecting fields of type Optional should be supported in osgi-mock.
cc sseifert
Attachments
Issue Links
- links to