\r
import org.apache.commons.logging.Log;\r
import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.core.SlcException;\r
+import org.argeo.slc.SlcException;\r
import org.argeo.slc.spring.SpringUtils;\r
import org.springframework.context.ConfigurableApplicationContext;\r
import org.springframework.context.support.ClassPathXmlApplicationContext;\r
if (context == null) {\r
context = new ClassPathXmlApplicationContext(\r
getApplicationContextLocation());\r
+ if(getIsStartContext())\r
+ context.start();\r
}\r
return context;\r
}\r
+ \r
+ /** Whether the context should be started after being created. */\r
+ protected Boolean getIsStartContext(){\r
+ return false;\r
+ }\r
\r
/** Returns a bean from the underlying context */\r
protected <T> T getBean(String beanId) {\r