From c2ae558689ee77ea9b62f21edb8fead374c0f1c0 Mon Sep 17 00:00:00 2001 From: ramkumar Date: Tue, 11 Aug 2009 16:44:08 +0000 Subject: Fixes for TUSCANY-3202 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@803201 13f79535-47bb-0310-9956-ffa450edef68 --- .../implementation/spring/introspect/SpringXMLComponentTypeLoader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java b/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java index 9e4aa9bc33..4df4e8c964 100644 --- a/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java +++ b/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java @@ -496,6 +496,9 @@ public class SpringXMLComponentTypeLoader { new SpringBeanIntrospector(assemblyFactory, javaFactory, policyFactory, beanElement.getCustructorArgs()); ComponentType beanComponentType = assemblyFactory.createComponentType(); javaImplementation = beanIntrospector.introspectBean(beanClass, beanComponentType); + // Set the service name as bean name + for (Service componentService : beanComponentType.getServices()) + componentService.setName(beanElement.getId()); // Get the service interface defined by this Spring Bean and add to // the component type of the Spring Assembly List beanServices = beanComponentType.getServices(); -- cgit v1.2.3