tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r781195 - /tuscany/branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java
Date Tue, 02 Jun 2009 22:37:24 GMT
Author: slaws
Date: Tue Jun  2 22:37:24 2009
New Revision: 781195

URL: http://svn.apache.org/viewvc?rev=781195&view=rev
Log:
TUSCANY-3070 - Work round to treat the symptom of activators being discovered twice on the
classpath in my environment. I can't work out why this is the case but this allows me to move
forward. 

Modified:
    tuscany/branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java

Modified: tuscany/branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java?rev=781195&r1=781194&r2=781195&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java
(original)
+++ tuscany/branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java
Tue Jun  2 22:37:24 2009
@@ -56,6 +56,13 @@
     }
 
     public void addClassVisitor(JavaClassVisitor visitor) {
+    	for (JavaClassVisitor tmpVisitor : visitors){
+    		if (tmpVisitor.getClass() == visitor.getClass()){
+    			// trying to add a duplicate visitor so
+    			// ignore it 
+    			return;
+    		}
+    	}
         visitors.add(visitor);
     }
 



Mime
View raw message