public class

Sun14ReflectionProvider

extends PureJavaReflectionProvider
java.lang.Object
   ↳ com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider
     ↳ com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider
Public Constructors
Sun14ReflectionProvider()
Sun14ReflectionProvider(FieldDictionary dic)
Public Methods
Object newInstance(Class type)
Creates a new instance of the specified type.
void writeField(Object object, String fieldName, Object value, Class definedIn)
Protected Methods
Object readResolve()
void validateFieldAccess(Field field)
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider
From class java.lang.Object
From interface com.thoughtworks.xstream.converters.reflection.ReflectionProvider

Public Constructors

public Sun14ReflectionProvider ()

public Sun14ReflectionProvider (FieldDictionary dic)

Public Methods

public Object newInstance (Class type)

Creates a new instance of the specified type. It is in the responsibility of the implementation how such an instance is created.

Parameters
type the type to instantiate
Returns
  • a new instance of this type

public void writeField (Object object, String fieldName, Object value, Class definedIn)

Protected Methods

protected Object readResolve ()

protected void validateFieldAccess (Field field)