public class

HarmonyReflectionProvider

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

Class Overview

Instantiates a new object on the Harmony 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 Harmony code. Note, this is work in progress. Harmony 5.0M4 crashes instantiating a class derived from com.thoughtworks.acceptance.objects.StandardObject, of type javax.swing.JTable or java.awt.Font. Additionally it fails with a NPE processing the annotations and has a wrong offset dealing with time zone. Same problems apply to 5.0M5.

Summary

[Expand]
Inherited Fields
From class com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider
Public Constructors
HarmonyReflectionProvider()
HarmonyReflectionProvider(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
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 HarmonyReflectionProvider ()

public HarmonyReflectionProvider (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 void validateFieldAccess (Field field)