diff options
Diffstat (limited to 'java/sca')
-rw-r--r-- | java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java index 6427eeceb5..0377dcaada 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java @@ -396,7 +396,7 @@ class BaseWireBuilderImpl { List<Endpoint> endpoints = new ArrayList<Endpoint>(); - if (componentReference.getAutowire() == Boolean.TRUE) { + if (componentReference.getAutowire() == Boolean.TRUE && componentReference.getTargets().isEmpty()) { // Find suitable targets in the current composite for an // autowired reference |