You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2010/01/14 16:49:45 UTC
svn commit: r899256 -
/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java
Author: slaws
Date: Thu Jan 14 15:49:44 2010
New Revision: 899256
URL: http://svn.apache.org/viewvc?rev=899256&view=rev
Log:
Remove unused line of code and correct comment
Modified:
tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java
Modified: tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java?rev=899256&r1=899255&r2=899256&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java Thu Jan 14 15:49:44 2010
@@ -204,10 +204,10 @@
if ((endpoints.size() == 0) &&
(runtime == true) ) {
- // tweak to test if this could be a resolve binding. If the uri
- // has come from the binding (as opposed to a reference target)
- // the assume that it is.
- String bindingURI = endpointReference.getBinding().getURI();
+ // tweak to test if this could be a resolve binding. This is the back end of the test
+ // in the builder that pulls the URI out of the binding if there are no targets
+ // on the reference. have to wait until here to see if the binding uri matches any
+ // available services. If not we assume here that it's a resolved binding
if (endpointReference.getStatus() == EndpointReference.WIRED_TARGET_IN_BINDING_URI){
endpointReference.getTargetEndpoint().setBinding(endpointReference.getBinding());
endpointReference.setRemote(true);