geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r561414 - /geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ClientConfigurationFactory.java
Date Tue, 31 Jul 2007 18:06:43 GMT
Author: gawor
Date: Tue Jul 31 11:06:42 2007
New Revision: 561414

URL: http://svn.apache.org/viewvc?view=rev&rev=561414
Log:
changed clearCache function to return ConfigurationContext

Modified:
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ClientConfigurationFactory.java

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ClientConfigurationFactory.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ClientConfigurationFactory.java?view=diff&rev=561414&r1=561413&r2=561414
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ClientConfigurationFactory.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ClientConfigurationFactory.java
Tue Jul 31 11:06:42 2007
@@ -80,13 +80,19 @@
         this.contextCache.clear();
     }
     
-    public void clearCache(ClassLoader cl) {
-        synchronized(cl) {
-            ConfigurationContext context = removeConfigurationContext(cl);
-            if (LOG.isDebugEnabled()) {                
+    public ConfigurationContext clearCache(ClassLoader cl) {
+        ConfigurationContext context = null;
+        if (cl != null) {
+            synchronized (cl) {
+                context = removeConfigurationContext(cl);
+            }
+            
+            if (LOG.isDebugEnabled()) {
                 LOG.debug("Removed configuration context " + context + " for " + cl);
             }
         }
+
+        return context;
     }
     
     private ConfigurationContext createConfigurationContext() {



Mime
View raw message