ObjectInputStream
.ObjectStreamClass
.ObjectInstantiator
for Android which creates objects using the constructor from the first
non-serializable parent class constructor, using internal methods on the Dalvik implementation of
ObjectStreamClass
.InstantiatorStrategy
class basically.org.objenesis.EmptyClass
becomes org/objenesis/EmptyClass
)org.objenesis.EmptyClass
becomes org/objenesis/EmptyClass.class
)ObjenesisHelper.getInstantiatorOf(Class)
but providing an instantiator emulating
ObjectInputStream.readObject behavior.ObjectInstantiator
allowing to create instance following the java
serialization framework specifications.ObjectInstantiator
allowing to create instance without any constructor being
called.SerializingInstantiatorStrategy
.SerializingInstantiatorStrategy
SerializingInstantiatorStrategy
with or without caching
ObjectInstantiator
sStdInstantiatorStrategy
.StdInstantiatorStrategy
StdInstantiatorStrategy
with or without
caching ObjectInstantiator
sPlatformDescription.HOTSPOT
insteadsun.misc.Unsafe.allocateInstance()
.sun.misc.Unsafe
Copyright © 2006–2024 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.