|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.jini.start.ClassLoaderUtil
This class provides useful utilities for creating and manipulating class loaders.
| Constructor Summary | |
ClassLoaderUtil()
|
|
| Method Summary | |
static void |
displayClassLoaderTree(ClassLoader classloader)
Utility method that displays the class loader delegation tree for the given class loader. |
static void |
displayContextClassLoaderTree()
Utility method that displays the class loader delegation tree for the current context class loader. |
static URL[] |
getClasspathURLs(String classpath)
Utility method that converts the components of a String
representing a classpath into file URL(s). |
static URL[] |
getCodebaseURLs(String codebase)
Utility method that converts the components of a String
representing a codebase into standard URL(s). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClassLoaderUtil()
| Method Detail |
public static URL[] getClasspathURLs(String classpath)
throws MalformedURLException
String
representing a classpath into file URL(s).
classpath - String containing components separated
by path separators that represent the components
making up a classpath
URL[] where
each element of the array corresponds to one of the components
in the classpath parameter
MalformedURLException
public static URL[] getCodebaseURLs(String codebase)
throws MalformedURLException
String
representing a codebase into standard URL(s).
codebase - String containing components separated
by spaces in which each component is in
URL format.
URL[] where
each element of the array corresponds to one of the components
in the codebase parameter
MalformedURLExceptionpublic static void displayContextClassLoaderTree()
This method can be useful when debugging problems related to the
receipt of exceptions such as ClassNotFoundException.
public static void displayClassLoaderTree(ClassLoader classloader)
This method can be useful when debugging problems related to the
receipt of exceptions such as ClassNotFoundException.
classloader - ClassLoader instance whose delegation
tree is to be displayed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||