cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r524916 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java
Date Mon, 02 Apr 2007 20:43:40 GMT
Author: dandiep
Date: Mon Apr  2 13:43:39 2007
New Revision: 524916

URL: http://svn.apache.org/viewvc?view=rev&rev=524916
Log:
Check to see if we've already registered this namespace before overwriting it. This should
fix a problem Geronimo is having where Jetty is getting loaded even though they have their
own DestinationFactory registered.

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

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java?view=diff&rev=524916&r1=524915&r2=524916
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java
Mon Apr  2 13:43:39 2007
@@ -165,7 +165,9 @@
                 Collection<Object> intf2Obj = namespaced.get(ns);
                 if (intf2Obj == null) {
                     intf2Obj = new ArrayList<Object>();
-                    namespaced.put(ns, intf2Obj);
+                    if (!namespaced.containsKey(ns)) {
+                        namespaced.put(ns, intf2Obj);
+                    }
                 }
                 intf2Obj.add(obj);
             }



Mime
View raw message