org.springframework.extensions.surf.util
Class Debug

java.lang.Object
  extended by org.springframework.extensions.surf.util.Debug

public class Debug
extends Object

Class containing debugging utility methods

Author:
gavinc

Constructor Summary
Debug()
           
 
Method Summary
static String whichClass(String className)
          Returns the location of the file that will be loaded for the given class name
static String whichClassLoader(String className)
          Returns the class loader that will load the given class name
static String whichClassLoaderHierarchy(String className)
          Returns the class loader hierarchy that will load the given class name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()
Method Detail

whichClass

public static String whichClass(String className)
                         throws ClassNotFoundException
Returns the location of the file that will be loaded for the given class name

Parameters:
className - The class to load
Returns:
The location of the file that will be loaded
Throws:
ClassNotFoundException

whichClassLoader

public static String whichClassLoader(String className)
                               throws ClassNotFoundException
Returns the class loader that will load the given class name

Parameters:
className - The class to load
Returns:
The class loader the class will be loaded in
Throws:
ClassNotFoundException

whichClassLoaderHierarchy

public static String whichClassLoaderHierarchy(String className)
                                        throws ClassNotFoundException
Returns the class loader hierarchy that will load the given class name

Parameters:
className - The class to load
Returns:
The hierarchy of class loaders used to load the class
Throws:
ClassNotFoundException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.