org.unitils.spring.util
Class ClassPathXmlApplicationContextFactory

java.lang.Object
  extended by org.unitils.spring.util.ClassPathXmlApplicationContextFactory
All Implemented Interfaces:
ApplicationContextFactory

public class ClassPathXmlApplicationContextFactory
extends Object
implements ApplicationContextFactory

An ApplicationContextFactory that creates an instance of the type ClassPathXmlApplicationContext.

Author:
Tim Ducheyne, Filip Neven

Constructor Summary
ClassPathXmlApplicationContextFactory()
           
 
Method Summary
 org.springframework.context.ConfigurableApplicationContext createApplicationContext(List<String> locations)
          Create an ClassPathXmlApplicationContext for the given locations on which refresh has not yet been called
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathXmlApplicationContextFactory

public ClassPathXmlApplicationContextFactory()
Method Detail

createApplicationContext

public org.springframework.context.ConfigurableApplicationContext createApplicationContext(List<String> locations)
Create an ClassPathXmlApplicationContext for the given locations on which refresh has not yet been called

Specified by:
createApplicationContext in interface ApplicationContextFactory
Parameters:
locations - The configuration file locations, not null
Returns:
A context, on which the refresh() method hasn't been called yet


Copyright © 2011. All Rights Reserved.