aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csie...@apache.org
Subject [aries-jax-rs-whiteboard] 02/02: Fully initialize ServletContextHelper
Date Fri, 22 Nov 2019 19:00:09 GMT
This is an automated email from the ASF dual-hosted git repository.

csierra pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-jax-rs-whiteboard.git

commit a6a383edb9167ff7c66a51f88463d08d59ea5459
Author: Carlos Sierra Andrés <carlos.sierra@liferay.com>
AuthorDate: Fri Nov 22 19:57:29 2019 +0100

    Fully initialize ServletContextHelper
---
 .../org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java
b/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java
index f97e28f..f892ab3 100644
--- a/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java
+++ b/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java
@@ -1331,8 +1331,12 @@ public class Whiteboard {
             if (!"".equals(address)) {
                 program = OSGi.register(
                     ServletContextHelper.class,
-                    () -> new ServletContextHelper() {},
-                    contextPropertiesSup);
+                    () -> new ServletContextHelper(
+                        _bundleContext.getBundle(
+                            (long)serviceProperties.get(
+                                "original.service.bundleid"))) {
+                        },
+                contextPropertiesSup);
             }
         }
         else {


Mime
View raw message