|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objenesis.ObjenesisHelper
public final class ObjenesisHelper
Use Objenesis in a static way. It is strongly not recommended to use this class.
| Method Summary | |
|---|---|
static ObjectInstantiator |
getInstantiatorOf(Class clazz)
Will pick the best instantiator for the provided class. |
static ObjectInstantiator |
getSerializableObjectInstantiatorOf(Class clazz)
Same as getInstantiatorOf(Class) but providing an instantiator emulating
ObjectInputStream.readObject behavior. |
static Object |
newInstance(Class clazz)
Will create a new object without any constructor being called |
static Serializable |
newSerializableInstance(Class clazz)
Will create an object just like it's done by ObjectInputStream.readObject (the default constructor of the first non serializable class will be called) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final Object newInstance(Class clazz)
clazz - Class to instantiate
public static final Serializable newSerializableInstance(Class clazz)
clazz - Class to instantiate
public static final ObjectInstantiator getInstantiatorOf(Class clazz)
newInstance(Class).
clazz - Class to instantiate
public static final ObjectInstantiator getSerializableObjectInstantiatorOf(Class clazz)
getInstantiatorOf(Class) but providing an instantiator emulating
ObjectInputStream.readObject behavior.
clazz - Class to instantiate
newSerializableInstance(Class)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||