|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.axis.utils.ClassUtils
public final class ClassUtils
Utility methods for Class Loading.
| Constructor Summary | |
|---|---|
ClassUtils()
|
|
| Method Summary | |
|---|---|
static Class |
forName(String className)
Use this method instead of Class.forName |
static Class |
forName(String _className,
boolean init,
ClassLoader _loader)
Use this method instead of Class.forName (String className, boolean init, ClassLoader loader) |
static ClassLoader |
getClassLoader(String className)
Obtain the ClassLoader (if any) associated with the given className. |
static InputStream |
getResourceAsStream(Class clazz,
String resource)
|
static void |
removeClassLoader(String className)
Deregister the ClassLoader for a given className. |
static void |
setClassLoader(String className,
ClassLoader loader)
Set the ClassLoader associated with the given className. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassUtils()
| Method Detail |
|---|
public static void setClassLoader(String className,
ClassLoader loader)
className - the name of a classpublic static ClassLoader getClassLoader(String className)
className - the name of a class
public static void removeClassLoader(String className)
className - the name of a class
public static Class forName(String className)
throws ClassNotFoundException
className - Class name
ClassNotFoundException - if the class is not found
public static Class forName(String _className,
boolean init,
ClassLoader _loader)
throws ClassNotFoundException
ClassNotFoundException
public static InputStream getResourceAsStream(Class clazz,
String resource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||