Merge trunk change r1148761 to add use the correct interface to beta3

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1149068 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
antelder 2011-07-21 08:28:09 +00:00
parent bfb5381250
commit 01387fc388

View file

@ -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 =