You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ng...@apache.org on 2007/06/25 20:42:53 UTC

svn commit: r550571 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/migrator/ApplicationContextMigratorUtil.java

Author: ngallardo
Date: Mon Jun 25 11:42:52 2007
New Revision: 550571

URL: http://svn.apache.org/viewvc?view=rev&rev=550571
Log:
Don't add a migrator to the list more than once.

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/migrator/ApplicationContextMigratorUtil.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/migrator/ApplicationContextMigratorUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/migrator/ApplicationContextMigratorUtil.java?view=diff&rev=550571&r1=550570&r2=550571
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/migrator/ApplicationContextMigratorUtil.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/migrator/ApplicationContextMigratorUtil.java Mon Jun 25 11:42:52 2007
@@ -54,6 +54,15 @@
             configurationContext.setProperty(contextMigratorListID, migratorList);
         }
 
+        // Check to make sure we haven't already added this migrator to the list.
+        ListIterator<ApplicationContextMigrator> itr = migratorList.listIterator();
+        while (itr.hasNext()) {
+            ApplicationContextMigrator m = itr.next();
+            if (m.getClass().equals(migrator.getClass())) {
+                return;
+            }
+        }
+        
         if (log.isDebugEnabled()) {
             log.debug("Adding ApplicationContextMigrator: " + migrator.getClass().getName());
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org