org.alfresco.util
Class Debug

java.lang.Object
  extended by org.alfresco.util.Debug

public class Debug
extends java.lang.Object

Class containing debugging utility methods


Constructor Summary
Debug()
           
 
Method Summary
static java.lang.String whichClass(java.lang.String className)
          Returns the location of the file that will be loaded for the given class name
static java.lang.String whichClassLoader(java.lang.String className)
          Returns the class loader that will load the given class name
static java.lang.String whichClassLoaderHierarchy(java.lang.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 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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.