|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.utils.ClassUtils
public class ClassUtils
Various utility methods relating to class.
Constructor Summary | |
---|---|
ClassUtils()
|
Method Summary | |
---|---|
static Class<?> |
classFor(String className,
ClassLoader loader)
Same as Class.forName exception logs the class loader stack before crashing. |
static Object |
instantiate(String className,
ClassLoader loader)
Instantiates a Class but converts the exception if it fails. |
static Class<?> |
primiativeTypeForWrapper(Class<?> wrapperType)
Provide the primiative type for a wrapper class. |
static Class<?> |
wrapperClassForPrimitive(Class<?> primitiveType)
Provide the wrapper class for a primitive type. |
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 Class<?> wrapperClassForPrimitive(Class<?> primitiveType)
primitiveType
-
public static Class<?> primiativeTypeForWrapper(Class<?> wrapperType)
wrapperType
-
public static Class<?> classFor(String className, ClassLoader loader) throws ClassNotFoundException
className
- loader
-
ClassNotFoundException
public static Object instantiate(String className, ClassLoader loader) throws ArooaException
className
- loader
-
ArooaException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |