diff options
author | ramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-02 17:08:20 +0000 |
---|---|---|
committer | ramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-02 17:08:20 +0000 |
commit | 5ea89068b364bb03a12d4311d05ff9c91d378b7c (patch) | |
tree | 48d8c9ae261eed195409495573bc443e4b586d2e /branches/sca-java-1.x/modules/implementation-spring-runtime | |
parent | ec4ca248e6e7cb5107f6e30e793391d1b43ba479 (diff) |
Updated fixes for TUSCANY-3069
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@790682 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/implementation-spring-runtime')
-rw-r--r-- | branches/sca-java-1.x/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/branches/sca-java-1.x/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java b/branches/sca-java-1.x/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java index 94556eae57..f250db1631 100644 --- a/branches/sca-java-1.x/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java +++ b/branches/sca-java-1.x/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java @@ -38,6 +38,7 @@ import org.springframework.beans.factory.config.ConstructorArgumentValues; import org.springframework.beans.factory.config.TypedStringValue;
import org.springframework.beans.factory.support.ManagedList;
import org.springframework.beans.factory.xml.XmlBeanFactory;
+import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.GenericApplicationContext;
@@ -70,7 +71,8 @@ public class SpringContextTie { }
public void start() {
- // Do refresh here to ensure that Spring Beans are not touched before the SCA config process is complete...
+ // Do refresh here to ensure that Spring Beans are not touched before
+ // the SCA config process is complete...
springContext.refresh();
springContext.start();
}
@@ -122,11 +124,12 @@ public class SpringContextTie { }
listValues = (values.toString()).split("~");
}
- }
-
- appContext = new ClassPathXmlApplicationContext(listValues, false, scaParentContext);
+ }
+
+ appContext = new ClassPathXmlApplicationContext(listValues, false, scaParentContext);
+ appContext.setClassLoader(implementation.getClassLoader());
appContext.refresh();
- appContext.getBeanFactory().setBeanClassLoader(implementation.getClassLoader());
+ //appContext.getBeanFactory().setBeanClassLoader(implementation.getClassLoader());
if (isAnnotationSupported)
includeAnnotationProcessors(appContext.getBeanFactory());
return appContext;
@@ -137,7 +140,6 @@ public class SpringContextTie { if (isAnnotationSupported)
includeAnnotationProcessors(beanFactory);
appContext = new GenericApplicationContext(beanFactory, scaParentContext);
- appContext.setClassLoader(implementation.getClassLoader());
return appContext;
}
|