Example usage for org.springframework.batch.core.configuration.support GenericApplicationContextFactory createApplicationContext

List of usage examples for org.springframework.batch.core.configuration.support GenericApplicationContextFactory createApplicationContext

Introduction

In this page you can find the example usage for org.springframework.batch.core.configuration.support GenericApplicationContextFactory createApplicationContext.

Prototype

@Override
public ConfigurableApplicationContext createApplicationContext() 

Source Link

Document

Creates an ApplicationContext from the provided path.

Usage

From source file:com.iisigroup.cap.batch.handler.BatchHandler.java

protected ApplicationContext createApplicationContextFactory(ApplicationContext parent,
        org.springframework.core.io.Resource resource) {
    GenericApplicationContextFactory applicationContextFactory = new GenericApplicationContextFactory(resource);
    if (parent != null) {
        applicationContextFactory.setApplicationContext(parent);
    }//w  ww  . j  av  a 2 s.  c om
    return applicationContextFactory.createApplicationContext();
}