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

public Class Android18Instantiator<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 18 and higher. Same as the version 17 but the newInstance now takes a long in parameter
Author
Henri Tremblay

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Long
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 Long objectConstructorId
typeback to summary
private final Class<T> type

Constructor Detail

Android18Instantiatorback to summary
public Android18Instantiator(Class<T> type)

Method Detail

findConstructorIdForJavaLangObjectConstructorback to summary
private static Long 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.