com.thoughtworks.xstream.objecttree.reflection
Class SunReflectionObjectFactory
java.lang.Object
com.thoughtworks.xstream.objecttree.reflection.SunReflectionObjectFactory
- All Implemented Interfaces:
- ObjectFactory
- public class SunReflectionObjectFactory
- extends java.lang.Object
- implements ObjectFactory
Instantiates a new object on the Sun JVM by bypassing the constructor (meaning code in the constructor
will never be executed and parameters do not have to be known). This is the same method used by the internals of
standard Java serialization, but relies on internal Sun code that may not be present on all JVMs.
Method Summary |
java.lang.Object |
create(java.lang.Class type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reflectionFactory
private sun.reflect.ReflectionFactory reflectionFactory
SunReflectionObjectFactory
public SunReflectionObjectFactory()
create
public java.lang.Object create(java.lang.Class type)
- Specified by:
create
in interface ObjectFactory