summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;
}
}
}