You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2009/05/02 08:27:00 UTC

svn commit: r770897 - /tuscany/java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java

Author: antelder
Date: Sat May  2 06:26:59 2009
New Revision: 770897

URL: http://svn.apache.org/viewvc?rev=770897&view=rev
Log:
Refresh context to fix itest failure. Need to undestand why a refresh is required

Modified:
    tuscany/java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java

Modified: tuscany/java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java?rev=770897&r1=770896&r2=770897&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java (original)
+++ tuscany/java/sca/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java Sat May  2 06:26:59 2009
@@ -115,12 +115,14 @@
                         
                         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;
                         }
                 }               
         }