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

public Class Android17Instantiator<T>

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

Instantiator for Android API level 11 to 17 which creates objects without driving their constructors, 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 Integer
private final Class<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Integer
private static Method
public T
newInstance()

Implements org.objenesis.instantiator.ObjectInstantiator.newInstance.

Returns a new instance of an object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

newInstanceMethodback to summary
private final Method newInstanceMethod
objectConstructorIdback to summary
private final Integer objectConstructorId
typeback to summary
private final Class<T> type

Constructor Detail

Android17Instantiatorback to summary
public Android17Instantiator(Class<T> type)

Method Detail

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

Implements org.objenesis.instantiator.ObjectInstantiator.newInstance.

Doc from org.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.