Author: rfeng
Date: Wed Sep 21 20:59:06 2011
New Revision: 1173853

URL: http://svn.apache.org/viewvc?rev=1173853&view=rev
Log:
Set allowsPassByReference for SCA references on Spring beans

Modified:
    
tuscany/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java

Modified: 
tuscany/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java?rev=1173853&r1=1173852&r2=1173853&view=diff
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
 (original)
+++ 
tuscany/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
 Wed Sep 21 20:59:06 2011
@@ -996,6 +996,9 @@ public class SpringXMLComponentTypeLoade
         // to 1..1 - for Spring implementations, this is the only multiplicity 
supported
         reference.setName(name);
         reference.setMultiplicity(Multiplicity.ONE_ONE);
+        
+        // For Spring references, we allow pass-by-reference
+        reference.setAllowsPassByReference(true);
 
         // Set the call interface and, if present, the callback interface
         JavaInterface callInterface = 
javaFactory.createJavaInterface(interfaze);


Reply via email to