com.thoughtworks.xstream.objecttree.reflection
Class SunReflectionObjectFactory

java.lang.Object
  extended bycom.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.


Field Summary
private  sun.reflect.ReflectionFactory reflectionFactory
           
 
Constructor Summary
SunReflectionObjectFactory()
           
 
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
 

Field Detail

reflectionFactory

private sun.reflect.ReflectionFactory reflectionFactory
Constructor Detail

SunReflectionObjectFactory

public SunReflectionObjectFactory()
Method Detail

create

public java.lang.Object create(java.lang.Class type)
Specified by:
create in interface ObjectFactory