Top Description Fields Constructors Methods
org.springframework.objenesis.instantiator.android

public Class AndroidSerializationInstantiator<T>

extends Object
implements ObjectInstantiator<T>
Class Inheritance
All Implemented Interfaces
org.springframework.objenesis.instantiator.ObjectInstantiator
Annotations
@Instantiator:SERIALIZATION
Imports
java.io.ObjectStreamClass, java.lang.reflect.InvocationTargetException, .Method, org.springframework.objenesis.ObjenesisException, org.springframework.objenesis.instantiator.ObjectInstantiator, org.springframework.objenesis.instantiator.annotations.Instantiator, .Typology

ObjectInstantiator for Android which creates objects using the constructor from the first non-serializable parent class constructor, using internal methods on the Dalvik implementation of ObjectStreamClass.
Author
Ian Parkinson (Google Inc.)

Field Summary

Modifier and TypeField and Description
private final Method
private final ObjectStreamClass
private final Class<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Method
public T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

newInstanceMethodback to summary
private final Method newInstanceMethod
objectStreamClassback to summary
private final ObjectStreamClass objectStreamClass
typeback to summary
private final Class<T> type

Constructor Detail

AndroidSerializationInstantiatorback to summary
public AndroidSerializationInstantiator(Class<T> type)

Method Detail

getNewInstanceMethodback to summary
private static Method getNewInstanceMethod()
newInstanceback to summary
public T newInstance()

Implements org.springframework.objenesis.instantiator.ObjectInstantiator.newInstance.

Doc from org.springframework.objenesis.instantiator.ObjectInstantiator.newInstance.

Returns a new instance of an object. The returned object's class is defined by the implementation.

Returns:T

A new instance of an object.