summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/core
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-11-19 19:37:14 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-11-19 19:37:14 +0000
commit2d79e8c24ef8dfc1341a2ef2fb753857c6a03a39 (patch)
treeb0f2e598bc0d26de1b6fa36859c2d9a717226453 /java/sca/modules/core
parent8bab020d7edd170362446aabe08947b1b9bf1fa7 (diff)
Rename getInterfaceContract() of Endpoint/EndpointReference
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882263 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/core')
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java6
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java6
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java3
3 files changed, 7 insertions, 8 deletions
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
index a44e4a93b7..3dafaedf35 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
@@ -521,7 +521,7 @@ public class RuntimeEndpointImpl extends EndpointImpl implements RuntimeEndpoint
}
bindingInterfaceContract = getBindingProvider().getBindingInterfaceContract();
if (bindingInterfaceContract == null) {
- bindingInterfaceContract = getInterfaceContract();
+ bindingInterfaceContract = getComponentServiceInterfaceContract();
}
if (bindingInterfaceContract == null) {
bindingInterfaceContract = getComponentTypeServiceInterfaceContract();
@@ -535,11 +535,11 @@ public class RuntimeEndpointImpl extends EndpointImpl implements RuntimeEndpoint
return serviceInterfaceContract;
}
if (service == null) {
- return getInterfaceContract();
+ return getComponentServiceInterfaceContract();
}
serviceInterfaceContract = getLeafContract(service).getInterfaceContract();
if (serviceInterfaceContract == null) {
- serviceInterfaceContract = getInterfaceContract();
+ serviceInterfaceContract = getComponentServiceInterfaceContract();
}
return serviceInterfaceContract;
}
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java
index fe343e941d..fa61ff8721 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java
@@ -465,7 +465,7 @@ public class RuntimeEndpointReferenceImpl extends EndpointReferenceImpl implemen
}
bindingInterfaceContract = getBindingProvider().getBindingInterfaceContract();
if (bindingInterfaceContract == null) {
- bindingInterfaceContract = getInterfaceContract();
+ bindingInterfaceContract = getComponentReferenceInterfaceContract();
}
if (bindingInterfaceContract == null) {
bindingInterfaceContract = getComponentTypeReferenceInterfaceContract();
@@ -479,11 +479,11 @@ public class RuntimeEndpointReferenceImpl extends EndpointReferenceImpl implemen
return referenceInterfaceContract;
}
if (reference == null) {
- return getInterfaceContract();
+ return getComponentReferenceInterfaceContract();
}
referenceInterfaceContract = getLeafContract(reference).getInterfaceContract();
if (referenceInterfaceContract == null) {
- referenceInterfaceContract = getInterfaceContract();
+ referenceInterfaceContract = getComponentReferenceInterfaceContract();
}
return referenceInterfaceContract;
}
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java
index 115a4d31dd..1b6cf79645 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java
@@ -305,7 +305,7 @@ public class ComponentContextImpl implements RuntimeComponentContext {
RuntimeEndpoint endpoint) {
try {
if (businessInterface == null) {
- InterfaceContract contract = endpoint.getInterfaceContract();
+ InterfaceContract contract = endpoint.getComponentTypeServiceInterfaceContract();
businessInterface = (Class<B>)((JavaInterface)contract.getInterface()).getJavaClass();
}
RuntimeEndpointReference ref =
@@ -369,7 +369,6 @@ public class ComponentContextImpl implements RuntimeComponentContext {
endpointReference.setReference(componentReference);
endpointReference.setBinding(endpoint.getBinding());
endpointReference.setUnresolved(false);
- endpointReference.setInterfaceContract(interfaceContract);
endpointReference.setStatus(EndpointReference.WIRED_TARGET_FOUND_READY_FOR_MATCHING);
endpointReference.setTargetEndpoint(endpoint);