Modifier and Type | Method and Description |
---|---|
static ObjectInstantiator |
ObjenesisHelper.getInstantiatorOf(Class clazz)
Will pick the best instantiator for the provided class.
|
ObjectInstantiator |
ObjenesisBase.getInstantiatorOf(Class clazz)
Will pick the best instantiator for the provided class.
|
ObjectInstantiator |
Objenesis.getInstantiatorOf(Class clazz)
Will pick the best instantiator for the provided class.
|
static ObjectInstantiator |
ObjenesisHelper.getSerializableObjectInstantiatorOf(Class clazz)
Same as
ObjenesisHelper.getInstantiatorOf(Class) but providing an instantiator emulating
ObjectInputStream.readObject behavior. |
Modifier and Type | Class and Description |
---|---|
class |
NullInstantiator
The instantiator that always return a null instance
|
Modifier and Type | Class and Description |
---|---|
class |
AccessibleInstantiator
Instantiates a class by grabbing the no-args constructor, making it accessible and then calling
Constructor.newInstance().
|
class |
ConstructorInstantiator
Instantiates a class by grabbing the no args constructor and calling Constructor.newInstance().
|
class |
NewInstanceInstantiator
The simplest instantiator - simply calls Class.newInstance().
|
class |
ObjectInputStreamInstantiator
Instantiates a class by using a dummy input stream that always feeds data for an empty object of
the same kind.
|
class |
ObjectStreamClassInstantiator
Instantiates a class by using reflection to make a call to private method
ObjectStreamClass.newInstance, present in many JVM implementations.
|
Modifier and Type | Class and Description |
---|---|
class |
GCJInstantiator
Instantiates a class by making a call to internal GCJ private methods.
|
class |
GCJInstantiatorBase
Base class for GCJ-based instantiators.
|
class |
GCJSerializationInstantiator
Instantiates a class by making a call to internal GCJ private methods.
|
Modifier and Type | Class and Description |
---|---|
class |
JRockit131Instantiator
Instantiates a class by making a call to internal JRockit private methods.
|
class |
JRockitLegacyInstantiator
Instantiates a class by making a call to internal JRockit private methods.
|
Modifier and Type | Class and Description |
---|---|
class |
Sun13Instantiator
Instantiates a class by making a call to internal Sun private methods.
|
class |
Sun13InstantiatorBase
Base class for Sun 1.3 based instantiators.
|
class |
Sun13SerializationInstantiator
Instantiates a class by making a call to internal Sun private methods.
|
class |
SunReflectionFactoryInstantiator
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
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.
|
Modifier and Type | Method and Description |
---|---|
ObjectInstantiator |
StdInstantiatorStrategy.newInstantiatorOf(Class type)
Return an
ObjectInstantiator allowing to create instance without any constructor being
called. |
ObjectInstantiator |
SerializingInstantiatorStrategy.newInstantiatorOf(Class type)
Return an
ObjectInstantiator allowing to create instance following the java
serialization framework specifications. |
ObjectInstantiator |
InstantiatorStrategy.newInstantiatorOf(Class type)
Create a dedicated instantiator for the given class
|
Copyright © 2018. All rights reserved.