use of org.springframework.beans.factory.access.BeanFactoryLocator in project simba-os by cegeka.
the class SpringAwareLocator method getApplicationContext.
private ApplicationContext getApplicationContext() {
if (context == null) {
BeanFactoryLocator locator = ContextSingletonBeanFactoryLocator.getInstance(contextConfigLocation);
BeanFactoryReference reference = locator.useBeanFactory("simbaContext");
context = (AbstractApplicationContext) reference.getFactory();
}
return context;
}
use of org.springframework.beans.factory.access.BeanFactoryLocator in project sakuli by ConSol.
the class BeanLoader method getBeanFactory.
private static BeanFactory getBeanFactory() {
BeanFactoryLocator bfl = SingletonBeanFactoryLocator.getInstance(CONTEXT_PATH);
bfl.useBeanFactory("org.sakuli.app.root");
return getBeanFactoryReference().getFactory();
}
Aggregations