cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r596253 - /incubator/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyEngineImpl.java
Date Mon, 19 Nov 2007 10:20:26 GMT
Author: mmao
Date: Mon Nov 19 02:20:26 2007
New Revision: 596253

URL: http://svn.apache.org/viewvc?rev=596253&view=rev
Log:
CXF-1218
   Memory Leak in Policy Engine


Modified:
    incubator/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyEngineImpl.java

Modified: incubator/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyEngineImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyEngineImpl.java?rev=596253&r1=596252&r2=596253&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyEngineImpl.java
(original)
+++ incubator/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyEngineImpl.java
Mon Nov 19 02:20:26 2007
@@ -31,6 +31,8 @@
 import javax.xml.namespace.QName;
 
 import org.apache.cxf.Bus;
+import org.apache.cxf.endpoint.ServerLifeCycleListener;
+import org.apache.cxf.endpoint.Server;
 import org.apache.cxf.extension.BusExtension;
 import org.apache.cxf.helpers.CastUtils;
 import org.apache.cxf.service.model.BindingFaultInfo;
@@ -52,7 +54,7 @@
 /**
  * 
  */
-public class PolicyEngineImpl implements PolicyEngine, BusExtension {
+public class PolicyEngineImpl implements PolicyEngine, BusExtension, ServerLifeCycleListener
{
     
     private Bus bus;
     private PolicyRegistry registry;
@@ -521,7 +523,15 @@
         }
         return true;
     }
-    
+
+    public void startServer(Server server) {
+        // emptry
+    }
+
+    public void stopServer(Server server) {
+        EndpointInfo ei = server.getEndpoint().getEndpointInfo();
+        endpointInfo.remove(ei);
+    }
     
     /**
      * Class used as key in the client request policy and server response policy maps.



Mime
View raw message