org.jboss.test.util
Class ClassMover

java.lang.Object
  extended byorg.jboss.test.util.ClassMover

public class ClassMover
extends java.lang.Object

A utility class that moves a class file to a .bak file to effectively remove it from the classpath using #move(String) and restores it using #restore(File).


Constructor Summary
ClassMover()
           
 
Method Summary
static java.io.File move(java.lang.String className)
           
static void restore(java.io.File classFileBak)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMover

public ClassMover()
Method Detail

move

public static java.io.File move(java.lang.String className)
                         throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

restore

public static void restore(java.io.File classFileBak)