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

public Class PercSerializationInstantiator<T>

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

Instantiates a class by making a call to internal Perc private methods. It is only supposed to work on Perc JVMs. This instantiator will create classes in a way compatible with serialization, calling the first non-serializable superclass' no-arg constructor.

Based on code provided by Aonix but doesn't work right now

Author
Henri Tremblay
See Also
org.springframework.objenesis.instantiator.ObjectInstantiator

Field Summary

Modifier and TypeField and Description
private final Method
private final Object[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Field Detail

newInstanceMethodback to summary
private final Method newInstanceMethod
typeArgsback to summary
private final Object[] typeArgs

Constructor Detail

PercSerializationInstantiatorback to summary
public PercSerializationInstantiator(Class<T> type)

Method Detail

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.

Annotations
@SuppressWarnings:unchecked