|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.geekologue.md4j.util.ClassUtils
public class ClassUtils
Class Utilities
Constructor Summary | |
---|---|
ClassUtils()
|
Method Summary | |
---|---|
static java.lang.ClassLoader |
getClassLoader()
get the context classloader from the current thread |
static java.lang.Class |
loadClass(java.lang.String className)
Load a class given a class name its name |
static java.lang.Object |
newInstance(java.lang.String name)
Create a new object 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 java.lang.Object newInstance(java.lang.String name) throws java.lang.Exception
name
- The class name
java.lang.Exception
- In case an instantiation error occurspublic static java.lang.Class loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
name
- The class name
java.lang.ClassNotFoundException
- If the class cannot be loadedpublic static java.lang.ClassLoader getClassLoader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |