|
JDOM 2.0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdom2.internal.ReflectionConstructor
public class ReflectionConstructor
Utility class that handles constructing a class using reflection, and a no-argument 'default' constructor.
| Constructor Summary | |
|---|---|
ReflectionConstructor()
|
|
| Method Summary | ||
|---|---|---|
static
|
construct(java.lang.String classname,
java.lang.Class<E> targetclass)
Construct a new instance of the named class, and ensure it is cast to the type specified as the targetclass. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionConstructor()
| Method Detail |
|---|
public static final <E> E construct(java.lang.String classname,
java.lang.Class<E> targetclass)
E - The generic type of the returned value.classname - The class name of the instance to create.targetclass - The return type of the created instance
java.lang.IllegalArgumentException - if there is a problem locating the class instance.
java.lang.IllegalStateException - if there is a problem instantiating a class instance.
|
JDOM 2.0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||