public abstract class ClassLoaderUtils extends Object
ClassLoader| Constructor and Description |
|---|
ClassLoaderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
showClassLoaderHierarchy(ClassLoader cl)
Show the class loader hierarchy for the given class loader.
|
static String |
showClassLoaderHierarchy(ClassLoader cl,
String lineBreak,
String tabText)
Show the class loader hierarchy for the given class loader.
|
static String |
showClassLoaderHierarchy(Object obj,
String role)
Show the class loader hierarchy for this class.
|
static String |
showClassLoaderHierarchy(Object obj,
String role,
String lineBreak,
String tabText)
Show the class loader hierarchy for this class.
|
public ClassLoaderUtils()
public static String showClassLoaderHierarchy(Object obj, String role)
obj - object to analyze loader hierarchy forrole - a description of the role of this class in the application
(e.g., "servlet" or "EJB reference")public static String showClassLoaderHierarchy(Object obj, String role, String lineBreak, String tabText)
obj - object to analyze loader hierarchy forrole - a description of the role of this class in the application
(e.g., "servlet" or "EJB reference")lineBreak - line breaktabText - text to use to set tabspublic static String showClassLoaderHierarchy(ClassLoader cl)
cl - class loader to analyze hierarchy forpublic static String showClassLoaderHierarchy(ClassLoader cl, String lineBreak, String tabText)
cl - class loader to analyze hierarchy forlineBreak - line breaktabText - text to use to set tabs