Package org.objenesis.instantiator.sun
-
Class Summary Class Description MagicInstantiator<T> This instantiator will correctly bypass the constructors by instantiating the class using the default constructor from Object.SunReflectionFactoryHelper Helper methods providing access toReflectionFactory
via reflection, for use by theObjectInstantiator
s that use it.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.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.UnsafeFactoryInstantiator<T> Instantiates an object, WITHOUT calling it's constructor, usingsun.misc.Unsafe.allocateInstance()
.