org.unitils.spring.util
Class ClassPathXmlApplicationContextFactory
java.lang.Object
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
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 |
ClassPathXmlApplicationContextFactory
public ClassPathXmlApplicationContextFactory()
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.