List of usage examples for org.springframework.context.support AbstractApplicationContext AbstractApplicationContext
public AbstractApplicationContext()
From source file:org.os890.ds.addon.spring.impl.unidirectional.EmptySpringContainerManager.java
@Override public ConfigurableApplicationContext bootContainer(BeanFactoryPostProcessor... beanFactoryPostProcessors) { beanFactoryPostProcessor = SpringBridgeExtension.getBeanFactoryPostProcessor(); this.context = new AbstractApplicationContext() { @Override//from ww w . j ava2s . c o m protected void refreshBeanFactory() throws BeansException, IllegalStateException { } @Override protected void closeBeanFactory() { } @Override public ConfigurableListableBeanFactory getBeanFactory() throws IllegalStateException { return new DefaultListableBeanFactory() { @Override public String[] getBeanDefinitionNames() { return new String[] {}; } }; } }; return this.context; }