Package org.alfresco.util
Class Debug
- java.lang.Object
-
- org.alfresco.util.Debug
-
public class Debug extends Object
Class containing debugging utility methods- Author:
- gavinc
-
-
Constructor Summary
Constructors Constructor Description Debug()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
whichClass(String className)
Returns the location of the file that will be loaded for the given class namestatic String
whichClassLoader(String className)
Returns the class loader that will load the given class namestatic String
whichClassLoaderHierarchy(String className)
Returns the class loader hierarchy that will load the given class name
-
-
-
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
-
-