|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objenesis.instantiator.sun.SunReflectionFactorySerializationInstantiator
public 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. This instantiator will create classes in a way compatible with serialization, calling the first non-serializable superclass' no-arg constructor. This is the best way to instantiate an object without any side effects caused by the constructor - however it is not available on every platform.
ObjectInstantiator
Constructor Summary | |
---|---|
SunReflectionFactorySerializationInstantiator(java.lang.Class type)
|
Method Summary | |
---|---|
java.lang.Object |
newInstance()
Returns a new instance of an object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SunReflectionFactorySerializationInstantiator(java.lang.Class type)
Method Detail |
---|
public java.lang.Object newInstance()
ObjectInstantiator
newInstance
in interface ObjectInstantiator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |