|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis.utils.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 classpublic static Class forName(String className) throws ClassNotFoundException
className - Class name
ClassNotFoundException - if the class is not foundpublic static Class forName(String _className, boolean init, ClassLoader _loader) throws ClassNotFoundException
ClassNotFoundExceptionpublic static InputStream getResourceAsStream(Class clazz, String resource)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||