cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r784059 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/configuration/spring/ConfigurerImpl.java
Date Fri, 12 Jun 2009 10:24:24 GMT
Author: ningjiang
Date: Fri Jun 12 10:24:24 2009
New Revision: 784059

URL: http://svn.apache.org/viewvc?rev=784059&view=rev
Log:
CXF-2279 clean up the application context map of ConfigurerImpl when it is destroied

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/configuration/spring/ConfigurerImpl.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/configuration/spring/ConfigurerImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/configuration/spring/ConfigurerImpl.java?rev=784059&r1=784058&r2=784059&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/configuration/spring/ConfigurerImpl.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/configuration/spring/ConfigurerImpl.java
Fri Jun 12 10:24:24 2009
@@ -217,12 +217,18 @@
         addApplicationContext(ac);
         setBeanFactory(ac.getAutowireCapableBeanFactory());
     }
+    
     public final void addApplicationContext(ApplicationContext ac) {
         if (!appContexts.contains(ac)) {
             appContexts.add(ac);
             initWildcardDefinitionMap();
         }
     }
+    
+    public void destroy() {
+        super.destroy();       
+        appContexts.clear();
+    }
 
     public Class<?> getRegistrationType() {
         return Configurer.class;



Mime
View raw message