com.interface21.util
Class ClassLoaderAnalyzer

java.lang.Object
  |
  +--com.interface21.util.ClassLoaderAnalyzer

public class ClassLoaderAnalyzer
extends java.lang.Object

Utility class for diagnostic purposes to analyze the ClassLoader hierarchy for any object.

Since:
02 April 2001
Author:
Rod Johnson

Constructor Summary
ClassLoaderAnalyzer()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static java.lang.String showClassLoaderHierarchy(java.lang.ClassLoader cl, java.lang.String delim, java.lang.String tabText, int indent)
          Show the class loader hierarchy for this class
static java.lang.String showClassLoaderHierarchy(java.lang.Object obj, java.lang.String role, java.lang.String delim, java.lang.String tabText)
          Show the class loader hierarchy for this class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderAnalyzer

public ClassLoaderAnalyzer()
Method Detail

showClassLoaderHierarchy

public static java.lang.String showClassLoaderHierarchy(java.lang.Object obj,
                                                        java.lang.String role,
                                                        java.lang.String delim,
                                                        java.lang.String tabText)
Show the class loader hierarchy for this class
Parameters:
obj - object to analyze loader hierarchy for
role - a description of the role of this class in the application (e.g., "servlet" or "EJB reference")
delim - line break
tabText - text to use to set tabs
Returns:
a String showing the class loader hierarchy for this class

showClassLoaderHierarchy

public static java.lang.String showClassLoaderHierarchy(java.lang.ClassLoader cl,
                                                        java.lang.String delim,
                                                        java.lang.String tabText,
                                                        int indent)
Show the class loader hierarchy for this class
Parameters:
cl - class loader to analyze hierarchy for
delim - line break
tabText - text to use to set tabs
indent - nesting level (from 0) of this loader; used in pretty printing
Returns:
a String showing the class loader hierarchy for this class

main

public static void main(java.lang.String[] args)


Rod Johnson and Spring contributors 2001-2003.