summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/core-spi/src
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-06-11 13:59:51 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-06-11 13:59:51 +0000
commit420a0ae043ef6829e4ba96c6fba24aaca8fd3838 (patch)
tree1c02daf53c1cf57577c2e3d64a4d351c0430b9d5 /sca-java-2.x/trunk/modules/core-spi/src
parent284ab51e567e3ef8d7797ef299bf4bdbffa2689b (diff)
Update to avoid duplicated wire processors
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1348852 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/core-spi/src')
-rw-r--r--sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DefaultWireProcessorExtensionPoint.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DefaultWireProcessorExtensionPoint.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DefaultWireProcessorExtensionPoint.java
index 283d1d1a8b..054ebeda13 100644
--- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DefaultWireProcessorExtensionPoint.java
+++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DefaultWireProcessorExtensionPoint.java
@@ -91,6 +91,7 @@ public class DefaultWireProcessorExtensionPoint implements RuntimeWireProcessorE
try {
Collection<ServiceDeclaration> sds =
registry.getServiceDiscovery().getServiceDeclarations(RuntimeWireProcessor.class, true);
+ sds = ServiceDiscovery.removeDuplicateDeclarations(sds);
for (ServiceDeclaration sd : sds) {
Class type = sd.loadClass();
Constructor constructor = null;