use of com.haulmont.cuba.core.sys.CubaClassPathXmlApplicationContext in project cuba by cuba-platform.
the class TestContainer method initAppContext.
protected void initAppContext() {
EclipseLinkCustomizer.initTransientCompatibleAnnotations();
String configProperty = AppContext.getProperty(AbstractAppContextLoader.SPRING_CONTEXT_CONFIG);
StringTokenizer tokenizer = new StringTokenizer(configProperty);
List<String> locations = tokenizer.getTokenList();
StringTokenizer configTokenizer = new StringTokenizer(getSpringConfig());
locations.addAll(configTokenizer.getTokenList());
springAppContext = new CubaClassPathXmlApplicationContext(locations.toArray(new String[0]));
AppContext.Internals.setApplicationContext(springAppContext);
Events events = springAppContext.getBean(Events.NAME, Events.class);
events.publish(new AppContextInitializedEvent(springAppContext));
}
Aggregations