You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/04/13 23:30:05 UTC

svn commit: r528675 - /incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java

Author: jsdelfino
Date: Fri Apr 13 14:30:04 2007
New Revision: 528675

URL: http://svn.apache.org/viewvc?view=rev&rev=528675
Log:
Reverse the connection between source and target when we are promoting a reference using a composite reference.

Modified:
    incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java

Modified: incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java?view=diff&rev=528675&r1=528674&r2=528675
==============================================================================
--- incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java (original)
+++ incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java Fri Apr 13 14:30:04 2007
@@ -313,7 +313,7 @@
                     contract = definition.getInterfaceContract();
                 }
                 QName type = binding.getBindingType();
-                Wire wire = createWire(sourceUri, targetUri, definition.getInterfaceContract(), contract, type);
+                Wire wire = createWire(targetUri, sourceUri, contract, definition.getInterfaceContract(), type);
                 binding.setWire(wire);
                 // wire local bindings to their targets
                 Component target = componentManager.getComponent(UriHelper.getDefragmentedName(targetUri));
@@ -321,7 +321,7 @@
                     throw new ComponentNotFoundException("Target not found", sourceUri);
                 }
                 try {
-                    attachInvokers(targetUri.getFragment(), wire, binding, target);
+                    attachInvokers(sourceUri.getFragment(), wire, target, binding);
                 } catch (TargetInvokerCreationException e) {
                     throw new WireCreationException("Error creating invoker", sourceUri, targetUri, e);
                 }
@@ -330,7 +330,7 @@
                 if (bindingContract == null) {
                     bindingContract = definition.getInterfaceContract();
                 }
-                Wire wire = createWire(sourceUri, null, definition.getInterfaceContract(), bindingContract, binding
+                Wire wire = createWire(null, sourceUri, bindingContract, definition.getInterfaceContract(), binding
                     .getBindingType());
                 if (postProcessorRegistry != null) {
                     postProcessorRegistry.process(wire);



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org