|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.ClassUtil
public final class ClassUtil
Utility methods for classes.
Method Summary | |
---|---|
static Class |
classForName(String className)
Deprecated. since 4.3 - use Classes.getClassFactory() . |
static boolean |
isSubClass(Class<?> subClass,
Class<?> parentClass)
Deprecated. since 4.3, use parentClass.isAssignableFrom(subClass) |
static Object |
newInstance(String className)
Deprecated. since 4.3 - use Classes.getClassFactory() .
Shortcut for ClassUtil.classForName(className).newInstance() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Class classForName(String className) throws ClassNotFoundException
Classes.getClassFactory()
.
className
- class name
ClassNotFoundException
- if the given class can't be loaded by both classloaders.public static Object newInstance(String className) throws InstantiationException, IllegalAccessException, ClassNotFoundException
Classes.getClassFactory()
.
Shortcut for ClassUtil.classForName(className).newInstance()
className
- class name
InstantiationException
- exception thrown by newInstance()
IllegalAccessException
- exception thrown by newInstance()
ClassNotFoundException
- if the given class can't be loaded by both classloaderspublic static boolean isSubClass(Class<?> subClass, Class<?> parentClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |