Package org.alfresco.util
Class Debug
- java.lang.Object
-
- org.alfresco.util.Debug
-
public class Debug extends java.lang.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 java.lang.String
whichClass(java.lang.String className)
Returns the location of the file that will be loaded for the given class namestatic java.lang.String
whichClassLoader(java.lang.String className)
Returns the class loader that will load the given class namestatic java.lang.String
whichClassLoaderHierarchy(java.lang.String className)
Returns the class loader hierarchy that will load the given class name
-
-
-
Method Detail
-
whichClass
public static java.lang.String whichClass(java.lang.String className) throws java.lang.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:
java.lang.ClassNotFoundException
-
whichClassLoader
public static java.lang.String whichClassLoader(java.lang.String className) throws java.lang.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:
java.lang.ClassNotFoundException
-
whichClassLoaderHierarchy
public static java.lang.String whichClassLoaderHierarchy(java.lang.String className) throws java.lang.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:
java.lang.ClassNotFoundException
-
-