public final class ClassUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkForClass(String pClassName)
Check for the existence of a given class
|
static Class |
classForName(String pClassName)
Lookup a class.
|
static Class |
classForName(String pClassName,
boolean pInitialize)
Load a certain class.
|
static <T> T |
newInstance(String pClass)
Instantiate an instance of the given class with its default constructor
|
public static Class classForName(String pClassName, boolean pInitialize)
pClassName - class name to loadpInitialize - whether the class must be initializedpublic static Class classForName(String pClassName)
classForName(String, boolean) for details. The class
gets initialized during lookup.pClassName - name to lookup.public static boolean checkForClass(String pClassName)
pClassName - class name to checkpublic static <T> T newInstance(String pClass)
T - type object typepClass - name of class to instantiateIllegalArgumentException - if the class could not be found or instantiatedCopyright © 2014. All Rights Reserved.