Skip to content

Commit

Permalink
add support for OSGi Service Loader Mediator
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <[email protected]>
  • Loading branch information
lukasj committed Oct 20, 2023
1 parent 4d57820 commit 7ff1087
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,16 @@
!org.eclipse.parsson,
*
</Import-Package>
<!-- optional to allow usage with hk2 resource locator as a fallback -->
<Require-Capability><![CDATA[
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)
(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
osgi.serviceloader;
filter:="(osgi.serviceloader=jakarta.json.spi.JsonProvider";
osgi.serviceloader="jakarta.json.spi.JsonProvider";
cardinality:=multiple;resolution:=optional
]]>
</Require-Capability>
</instructions>
</configuration>
<executions>
Expand Down

0 comments on commit 7ff1087

Please sign in to comment.