cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject [cxf] 02/02: [CXF-7529] Clean up JAX-RS RuntimeDelegate when rt-frontend-jaxrs bundle is stopped/refreshed
Date Wed, 11 Oct 2017 11:30:31 GMT
This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 9b76aef2d2753bce5edd5205b35ae0742a63bd6d
Author: Grzegorz Grzybek <gr.grzybek@gmail.com>
AuthorDate: Wed Oct 11 08:45:52 2017 +0200

    [CXF-7529] Clean up JAX-RS RuntimeDelegate when rt-frontend-jaxrs bundle is stopped/refreshed
    
    (cherry picked from commit a3bd3655a9000911c3f7da431e5f215a2fd348aa)
---
 .../jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/Activator.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/Activator.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/Activator.java
index fc5a5e7..768fc9e 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/Activator.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/Activator.java
@@ -18,6 +18,8 @@
  */
 package org.apache.cxf.jaxrs.blueprint;
 
+import javax.ws.rs.ext.RuntimeDelegate;
+
 import org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory;
 import org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer;
 import org.osgi.framework.BundleActivator;
@@ -44,7 +46,7 @@ public class Activator implements BundleActivator {
 
     @Override
     public void stop(BundleContext context) throws Exception {
-
+        RuntimeDelegate.setInstance(null);
     }
 
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@cxf.apache.org" <commits@cxf.apache.org>.

Mime
View raw message