|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.util.ClassUtils
A collection of class management utility methods.
Constructor Summary | |
ClassUtils()
|
Method Summary | |
static ClassLoader |
getClassLoader()
Return the context classloader. |
static URL |
getResource(String resource)
Return a resource URL. |
static Class |
loadClass(String className)
Load a class given its name. |
static Object |
newInstance(String className)
Create a new instance given a class name |
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 Object newInstance(String className) throws Exception
className
- A class name
Exception
- If an instantiation error occurspublic static Class loadClass(String className) throws ClassNotFoundException
className
- A class name
className
ClassNotFoundException
- If a loading error occurspublic static URL getResource(String resource) throws MalformedURLException
MalformedURLException
- If a loading error occurspublic static ClassLoader getClassLoader()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |