|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.util.ClassUtils
public final class ClassUtils
Class utilities.
Method Summary | |
---|---|
static java.lang.Object |
instantiateClass(java.lang.String className,
java.lang.Class<?> expectedType)
Instantiates a class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final java.lang.Object instantiateClass(java.lang.String className, java.lang.Class<?> expectedType)
The class is expected to have a public no-argument constructor.
className
- the class nameexpectedType
- the expected (super) type of the result
JRRuntimeException
- if the class cannot be loaded or instantiated,
or if it does not implement the expected type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |