org.springframework.util
Class ClassLoaderUtils
java.lang.Object
org.springframework.util.ClassLoaderUtils
- public abstract class ClassLoaderUtils
- extends Object
Utility class for diagnostic purposes, to analyze the
ClassLoader hierarchy for any object.
- Since:
- 02 April 2001
- Author:
- Rod Johnson
- See Also:
ClassLoader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassLoaderUtils
public ClassLoaderUtils()
showClassLoaderHierarchy
public static String showClassLoaderHierarchy(Object obj,
String role,
String delim,
String tabText)
- Show the class loader hierarchy for this class.
- Parameters:
obj
- object to analyze loader hierarchy forrole
- a description of the role of this class in the application
(e.g., "servlet" or "EJB reference")delim
- line breaktabText
- text to use to set tabs
- Returns:
- a String showing the class loader hierarchy for this class
showClassLoaderHierarchy
public static String showClassLoaderHierarchy(ClassLoader cl,
String delim,
String tabText,
int indent)
- Show the class loader hierarchy for this class.
- Parameters:
cl
- class loader to analyze hierarchy fordelim
- line breaktabText
- text to use to set tabsindent
- nesting level (from 0) of this loader; used in pretty printing
- Returns:
- a String showing the class loader hierarchy for this class
Copyright (C) 2003-2004 The Spring Framework Project.