|
|||||||||
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(java.lang.Class clazz)
Will pick the best instantiator for the provided class. |
static ObjectInstantiator |
getSerializableObjectInstantiatorOf(java.lang.Class clazz)
Same as getInstantiatorOf(Class) but providing an instantiator emulating
ObjectInputStream.readObject behavior. |
static java.lang.Object |
newInstance(java.lang.Class clazz)
Will create a new object without any constructor being called |
static java.io.Serializable |
newSerializableInstance(java.lang.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 java.lang.Object newInstance(java.lang.Class clazz)
clazz
- Class to instantiate
public static java.io.Serializable newSerializableInstance(java.lang.Class clazz)
clazz
- Class to instantiate
public static ObjectInstantiator getInstantiatorOf(java.lang.Class clazz)
newInstance(Class)
.
clazz
- Class to instantiate
public static ObjectInstantiator getSerializableObjectInstantiatorOf(java.lang.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 |