Example usage for org.springframework.context.support AbstractApplicationContext AbstractApplicationContext

List of usage examples for org.springframework.context.support AbstractApplicationContext AbstractApplicationContext

Introduction

In this page you can find the example usage for org.springframework.context.support AbstractApplicationContext AbstractApplicationContext.

Prototype

public AbstractApplicationContext() 

Source Link

Document

Create a new AbstractApplicationContext with no parent.

Usage

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;
}