|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objenesis.instantiator.basic.ConstructorInstantiator
public class ConstructorInstantiator
Instantiates a class by grabbing the no args constructor and calling Constructor.newInstance(). This can deal with default public constructors, but that's about it.
ObjectInstantiator
Field Summary | |
---|---|
protected java.lang.reflect.Constructor |
constructor
|
Constructor Summary | |
---|---|
ConstructorInstantiator(java.lang.Class type)
|
Method Summary | |
---|---|
java.lang.Object |
newInstance()
Returns a new instance of an object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.reflect.Constructor constructor
Constructor Detail |
---|
public ConstructorInstantiator(java.lang.Class type)
Method Detail |
---|
public java.lang.Object newInstance()
ObjectInstantiator
newInstance
in interface ObjectInstantiator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |