summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-05-02 06:26:59 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-05-02 06:26:59 +0000
commit19d04b7bfc5076e79f83e14df44525fa15aeaa43 (patch)
treec6fd75241c07e2f8238a3e45ec08ea9dd34a97df
parent23127e4767510f8b506980c5da8fb8f6b86b0118 (diff)
Refresh context to fix itest failure. Need to undestand why a refresh is required
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@770897 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java b/java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java
index 77a8c245d7..d2f615e030 100644
--- a/java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java
+++ b/java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java
@@ -115,12 +115,14 @@ public class SpringContextTie {
if (beanClassName.indexOf(".ClassPathXmlApplicationContext") != -1) {
appContext = new ClassPathXmlApplicationContext(listValues, false, scaParentContext);
+ appContext.refresh(); // TODO why is this needed here now?
includeAnnotationProcessors(appContext.getBeanFactory());
- return appContext;
+ return appContext;
} else {
appContext = new FileSystemXmlApplicationContext(listValues, false, scaParentContext);
+ appContext.refresh(); // TODO why is this needed here now?
includeAnnotationProcessors(appContext.getBeanFactory());
- return appContext;
+ return appContext;
}
}
}