org.unitils.spring
Class SpringUnitils

java.lang.Object
  extended by org.unitils.spring.SpringUnitils

public class SpringUnitils
extends Object

Utility facade for handling Spring things such as invalidating a cached application context.

Author:
Tim Ducheyne, Filip Neven

Constructor Summary
SpringUnitils()
           
 
Method Summary
static void invalidateApplicationContext(Class<?>... classes)
          Forces the reloading of the application context the next time that it is requested.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringUnitils

public SpringUnitils()
Method Detail

invalidateApplicationContext

public static void invalidateApplicationContext(Class<?>... classes)
Forces the reloading of the application context the next time that it is requested. If classes are given only contexts that are linked to those classes will be reset. If no classes are given, all cached contexts will be reset.

Parameters:
classes - The classes for which to reset the contexts


Copyright © 2011. All Rights Reserved.