|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.util.ClassUtil
public final class ClassUtil
Utilities to work with dynamic class loading and instantiation.
Method Summary | |
---|---|
static java.lang.Object |
instantiate(java.lang.String className)
Returns an instance of the given class name, by calling the default constructor. |
static java.lang.Object |
instantiate(java.lang.String className,
boolean returnNull)
Returns an instance of the given class name, by calling the default constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object instantiate(java.lang.String className) throws TilesException
className
- The class name to load and to instantiate.
TilesException
- If something goes wrong during instantiation.public static java.lang.Object instantiate(java.lang.String className, boolean returnNull) throws TilesException
className
- The class name to load and to instantiate.returnNull
- If true
, if the class is not found it
returns true
, otherwise it throws a
TilesException
.
TilesException
- If something goes wrong during instantiation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |