diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-02 06:26:59 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-02 06:26:59 +0000 |
commit | 19d04b7bfc5076e79f83e14df44525fa15aeaa43 (patch) | |
tree | c6fd75241c07e2f8238a3e45ec08ea9dd34a97df /java/sca/modules/implementation-spring-runtime | |
parent | 23127e4767510f8b506980c5da8fb8f6b86b0118 (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
Diffstat (limited to 'java/sca/modules/implementation-spring-runtime')
-rw-r--r-- | java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java | 6 |
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;
}
}
}
|