summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-07-20 13:35:14 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-07-20 13:35:14 +0000
commit2555b1827daae7fd627684edf63fe3afe8ce2ea0 (patch)
tree2a6ce1e424cd5cef37c50ffc58bf9e3e6ea55273 /sca-java-2.x/trunk
parent97f79faf6a6c874ff4575d13324474f87a40819e (diff)
Use the correct endpoint interface when the business interface is not specified
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1148761 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java
index fd14c8c03e..b8c205bb28 100644
--- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java
+++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java
@@ -361,7 +361,7 @@ public class ComponentContextImpl implements RuntimeComponentContext {
public <B> ServiceReference<B> getServiceReference(Class<B> businessInterface, RuntimeEndpoint endpoint) {
try {
if (businessInterface == null) {
- InterfaceContract contract = endpoint.getComponentTypeServiceInterfaceContract();
+ InterfaceContract contract = endpoint.getBindingInterfaceContract();
businessInterface = (Class<B>)((JavaInterface)contract.getInterface()).getJavaClass();
}
RuntimeEndpointReference ref =