From 6fc9f8704b54553bbb31935e272405bee83f1e59 Mon Sep 17 00:00:00 2001 From: rfeng Date: Wed, 21 Sep 2011 20:59:06 +0000 Subject: Set allowsPassByReference for SCA references on Spring beans git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1173853 13f79535-47bb-0310-9956-ffa450edef68 --- .../implementation/spring/introspect/SpringXMLComponentTypeLoader.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sca-java-2.x/trunk/modules/implementation-spring') diff --git a/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java b/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java index 35543a87fe..210affc216 100644 --- a/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java +++ b/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java @@ -996,6 +996,9 @@ public class SpringXMLComponentTypeLoader { // 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); -- cgit v1.2.3