summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-06-02 22:37:24 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-06-02 22:37:24 +0000
commit4685218054134e0a406e12c3755cb5080e8a8cb3 (patch)
tree7acc1c3b0ad1470b24771aaab208a798fad15046
parent134b64e2c0de3fde79dae0eb81fe26ba074e0e3e (diff)
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.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@781195 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java b/branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java
index 0cc78498e6..7d8c673e3f 100644
--- a/branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java
+++ b/branches/sca-java-1.x/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java
@@ -56,6 +56,13 @@ public abstract class JavaImplementationFactoryImpl implements JavaImplementatio
}
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);
}