org.jete.context
Class TestContextLoader

java.lang.Object
  extended byorg.jete.context.TestContextLoader

public class TestContextLoader
extends java.lang.Object

Common means of loading an application context throughout the test framework.

Version:
$Id: TestContextLoader.html,v 1.3 2006/03/12 02:46:55 tdeast Exp $

Constructor Summary
TestContextLoader()
           
 
Method Summary
static org.springframework.context.ApplicationContext loadContext(java.lang.String path)
          Load an application context via a failpath.
static void unloadContext(org.springframework.context.ApplicationContext context)
          To preserve resources, unload the specified ConfigurableApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestContextLoader

public TestContextLoader()
Method Detail

loadContext

public static org.springframework.context.ApplicationContext loadContext(java.lang.String path)
                                                                  throws java.io.FileNotFoundException
Load an application context via a failpath. This file must be in the class path to work

Parameters:
path -
Returns:
loaded Spring application context
Throws:
java.io.FileNotFoundException

unloadContext

public static void unloadContext(org.springframework.context.ApplicationContext context)
To preserve resources, unload the specified ConfigurableApplicationContext

Parameters:
context -