aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1422907 - /aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyManagerActivator.java
Date Mon, 17 Dec 2012 12:47:08 GMT
Author: gnodet
Date: Mon Dec 17 12:47:07 2012
New Revision: 1422907

URL: http://svn.apache.org/viewvc?rev=1422907&view=rev
Log:
[ARIES-988] The proxy manager should unregister its service

Modified:
    aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyManagerActivator.java

Modified: aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyManagerActivator.java
URL: http://svn.apache.org/viewvc/aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyManagerActivator.java?rev=1422907&r1=1422906&r2=1422907&view=diff
==============================================================================
--- aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyManagerActivator.java
(original)
+++ aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyManagerActivator.java
Mon Dec 17 12:47:07 2012
@@ -24,11 +24,13 @@ import java.util.Hashtable;
 import org.apache.aries.proxy.ProxyManager;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
 
 public class ProxyManagerActivator implements BundleActivator 
 {
   private static final boolean ASM_PROXY_SUPPORTED;
   private AbstractProxyManager managerService;
+  private ServiceRegistration registration;
   
   static
   {
@@ -68,10 +70,11 @@ public class ProxyManagerActivator imple
       managerService = new JdkProxyManager();
     }
     
-    context.registerService(ProxyManager.class.getName(), managerService, null);
+    registration = context.registerService(ProxyManager.class.getName(), managerService,
null);
   }
 
   public void stop(BundleContext context)
   {
+    registration.unregister();
   }
 }
\ No newline at end of file



Mime
View raw message