cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1360007 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java
Date Wed, 11 Jul 2012 04:32:12 GMT
Author: ffang
Date: Wed Jul 11 04:32:12 2012
New Revision: 1360007

URL: http://svn.apache.org/viewvc?rev=1360007&view=rev
Log:
[CXF-4411]Maven plugin fails wsdl2java execution with concurrent modification exception

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java?rev=1360007&r1=1360006&r2=1360007&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java
Wed Jul 11 04:32:12 2012
@@ -90,7 +90,7 @@ public class ExtensionManagerImpl implem
 
         load(resources);
     }
-    public final void load(String resources[]) {
+    public final synchronized void load(String resources[]) {
         if (resources == null) {
             return;
         }
@@ -108,7 +108,7 @@ public class ExtensionManagerImpl implem
             }
         }
     }
-    public void add(Extension ex) {
+    public synchronized void add(Extension ex) {
         all.put(ex.getName(), ex);
     }
     
@@ -154,7 +154,7 @@ public class ExtensionManagerImpl implem
         load(resource, loader);
     }
     @SuppressWarnings("deprecation")
-    final void load(String resource, ClassLoader l) throws IOException {
+    final synchronized void load(String resource, ClassLoader l) throws IOException {
         
         Enumeration<URL> urls = l.getResources(resource);
         
@@ -329,7 +329,7 @@ public class ExtensionManagerImpl implem
         return ex != null && ex.getNamespaces() != null
             && ex.getNamespaces().contains(value);
     }
-    public void destroyBeans() {
+    public synchronized void destroyBeans() {
         for (Extension ex : all.values()) {
             if (ex.getLoadedObject() != null) {
                 ResourceInjector injector = new ResourceInjector(resourceManager);



Mime
View raw message