From 817ab262f6ce8c87bed4925df4368f2b6b7bd752 Mon Sep 17 00:00:00 2001 From: Robert Csakany Date: Fri, 19 Apr 2024 10:36:53 +0200 Subject: [PATCH] JNG-5674 CXF context is mandatoty (#31) --- .../main/resources/rest/osgi/application.config.osgi.java.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judo-psm-generator-jaxrs-osgi/src/main/resources/rest/osgi/application.config.osgi.java.hbs b/judo-psm-generator-jaxrs-osgi/src/main/resources/rest/osgi/application.config.osgi.java.hbs index aa99413..6cf21ed 100644 --- a/judo-psm-generator-jaxrs-osgi/src/main/resources/rest/osgi/application.config.osgi.java.hbs +++ b/judo-psm-generator-jaxrs-osgi/src/main/resources/rest/osgi/application.config.osgi.java.hbs @@ -61,7 +61,7 @@ public class {{ applicationOsgiClassName self }} { @org.osgi.service.component.annotations.Reference( policyOption = org.osgi.service.component.annotations.ReferencePolicyOption.GREEDY, - cardinality = org.osgi.service.component.annotations.ReferenceCardinality.OPTIONAL, + cardinality = org.osgi.service.component.annotations.ReferenceCardinality.MANDATORY, target = "(judo.model.name={{ model.name }})", bind = "setContext" )