Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<String,ObjectInstantiator<?>> |
ObjenesisBase.cache
Strategy cache.
|
Modifier and Type | Method and Description |
---|---|
<T> ObjectInstantiator<T> |
ObjenesisBase.getInstantiatorOf(Class<T> clazz)
Will pick the best instantiator for the provided class.
|
<T> ObjectInstantiator<T> |
Objenesis.getInstantiatorOf(Class<T> clazz)
Will pick the best instantiator for the provided class.
|
static <T> ObjectInstantiator<T> |
ObjenesisHelper.getInstantiatorOf(Class<T> clazz)
Will pick the best instantiator for the provided class.
|
static <T extends Serializable> |
ObjenesisHelper.getSerializableObjectInstantiatorOf(Class<T> clazz)
Same as
ObjenesisHelper.getInstantiatorOf(Class) but providing an instantiator emulating
ObjectInputStream.readObject behavior. |
Modifier and Type | Class and Description |
---|---|
class |
Android10Instantiator<T>
Instantiator for Android API level 10 and lover which creates objects without driving their
constructors, using internal methods on the Dalvik implementation of
ObjectInputStream . |
class |
Android17Instantiator<T>
Instantiator for Android API level 11 to 17 which creates objects without driving their
constructors, using internal methods on the Dalvik implementation of
ObjectStreamClass . |
class |
Android18Instantiator<T>
Instantiator for Android API level 18 and higher.
|
class |
AndroidSerializationInstantiator<T>
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 . |
Modifier and Type | Class and Description |
---|---|
class |
AccessibleInstantiator<T>
Instantiates a class by grabbing the no-args constructor, making it accessible and then calling
Constructor.newInstance().
|
class |
ConstructorInstantiator<T>
Instantiates a class by grabbing the no args constructor and calling Constructor.newInstance().
|
class |
DelegatingToExoticInstantiator<T>
Helper class extended by instantiators for which the implementation was moved to the exotic project.
|
class |
FailingInstantiator<T>
The instantiator that always throws an exception.
|
class |
NewInstanceInstantiator<T>
The simplest instantiator - simply calls Class.newInstance().
|
class |
NullInstantiator<T>
The instantiator that always return a null instance
|
class |
ObjectInputStreamInstantiator<T>
Instantiates a class by using a dummy input stream that always feeds data for an empty object of
the same kind.
|
class |
ObjectStreamClassInstantiator<T>
Instantiates a class by using reflection to make a call to private method
ObjectStreamClass.newInstance, present in many JVM implementations.
|
class |
ProxyingInstantiator<T>
Shell keeping compatibility but delegating to objenesis-exotic which contains the real implementation.
|
Modifier and Type | Class and Description |
---|---|
class |
GCJInstantiator<T>
Instantiates a class by making a call to internal GCJ private methods.
|
class |
GCJInstantiatorBase<T>
Base class for GCJ-based instantiators.
|
class |
GCJSerializationInstantiator<T>
Instantiates a class by making a call to internal GCJ private methods.
|
Modifier and Type | Class and Description |
---|---|
class |
PercInstantiator<T>
Instantiates a class by making a call to internal Perc private methods.
|
class |
PercSerializationInstantiator<T>
Instantiates a class by making a call to internal Perc private methods.
|
Modifier and Type | Class and Description |
---|---|
class |
MagicInstantiator<T>
Shell keeping compatibility but delegating to objenesis-exotic which contains the real implementation.
|
class |
SunReflectionFactoryInstantiator<T>
Instantiates an object, WITHOUT calling it's constructor, using internal
sun.reflect.ReflectionFactory - a class only available on JDK's that use Sun's 1.4 (or later)
Java implementation.
|
class |
SunReflectionFactorySerializationInstantiator<T>
Instantiates an object using internal sun.reflect.ReflectionFactory - a class only available on
JDK's that use Sun's 1.4 (or later) Java implementation.
|
class |
UnsafeFactoryInstantiator<T>
Instantiates an object, WITHOUT calling its constructor, using
sun.misc.Unsafe.allocateInstance() . |
Modifier and Type | Method and Description |
---|---|
<T> ObjectInstantiator<T> |
InstantiatorStrategy.newInstantiatorOf(Class<T> type)
Create a dedicated instantiator for the given class
|
<T> ObjectInstantiator<T> |
StdInstantiatorStrategy.newInstantiatorOf(Class<T> type)
Return an
ObjectInstantiator allowing to create instance without any constructor being
called. |
<T> ObjectInstantiator<T> |
SingleInstantiatorStrategy.newInstantiatorOf(Class<T> type)
Return an instantiator for the wanted type and of the one and only type of instantiator returned by this
class.
|
<T> ObjectInstantiator<T> |
SerializingInstantiatorStrategy.newInstantiatorOf(Class<T> type)
Return an
ObjectInstantiator allowing to create instance following the java
serialization framework specifications. |
Copyright © 2006–2024 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.