|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.util.Classes
A collection of static utility methods for dealing with Java classes.
| Field Summary | |
static String |
versionId
|
| Constructor Summary | |
Classes()
|
|
| Method Summary | |
static Class |
loadClass(String clacc)
Loads a class from its fully qualified string name. |
static Object |
newInstance(Class clacc)
Creates a new instance of clacc using its no-args
constructor. |
static Object |
newInstance(Class clacc,
Class[] params,
Object[] values)
Constructs a new instance of a class using the given parameters. |
static Object |
newInstance(String clacc)
Creates a new instance of the class represented by clacc using its no-args constructor. |
static Object |
newInstance(String clacc,
Class[] params,
Object[] values)
Constructs a new instance of the class referred to by clacc. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String versionId
| Constructor Detail |
public Classes()
| Method Detail |
public static final Class loadClass(String clacc)
clacc - A fully qualified String naming
the class to be loaded
public static final Object newInstance(Class clacc,
Class[] params,
Object[] values)
clacc - The Class of which to make a new
instanceparams - A Class[] representing the arguments
of the desired constructorvalues - An Object[] of values to fill the
parameters
public static final Object newInstance(String clacc,
Class[] params,
Object[] values)
clacc.
clacc - The fully qualified String
clacc of the object you wish to instantiateparams - A Class[] representing the arguments
of the desired constructorvalues - An Object[] of values to fill the
parameterspublic static final Object newInstance(Class clacc)
clacc using its no-args
constructor. If the class has no such constructor, it throws a
runtime exception.
clacc - The class of which to create a new instancepublic static final Object newInstance(String clacc)
clacc using its no-args constructor. If the class
has no such constructor, it throws a runtime exception.
clacc - The fully-qualified String name of
the class
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||