Example usage for org.springframework.context.support GenericXmlApplicationContext addBeanFactoryPostProcessor

List of usage examples for org.springframework.context.support GenericXmlApplicationContext addBeanFactoryPostProcessor

Introduction

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

Prototype

@Override
    public void addBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor) 

Source Link

Usage

From source file:org.cloudfoundry.reconfiguration.spring.AbstractCloudServiceBeanFactoryPostProcessorTest.java

protected final ApplicationContext getApplicationContext(String contextLocation,
        BeanFactoryPostProcessor beanFactoryPostProcessor) {
    GenericXmlApplicationContext applicationContext = new GenericXmlApplicationContext();
    applicationContext.load(contextLocation);
    applicationContext.addBeanFactoryPostProcessor(beanFactoryPostProcessor);
    applicationContext.refresh();/*from w  w  w.  j  a  v  a  2 s. co  m*/

    return applicationContext;
}