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

public Class GCJSerializationInstantiator<T>

extends GCJInstantiatorBase<T>
Class Inheritance
Annotations
@Instantiator:SERIALIZATION
Imports
org.objenesis.ObjenesisException, org.objenesis.instantiator.SerializationInstantiatorHelper, org.objenesis.instantiator.annotations.Instantiator, .Typology

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

Field Summary

Modifier and TypeField and Description
private final Class<? super T>
Inherited from org.objenesis.instantiator.gcj.GCJInstantiatorBase:
dummyStreamnewObjectMethodtype

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public T

Field Detail

superTypeback to summary
private final Class<? super T> superType

Constructor Detail

GCJSerializationInstantiatorback to summary
public GCJSerializationInstantiator(Class<T> type)

Method Detail

newInstanceback to summary
public T newInstance()

Implements abstract org.objenesis.instantiator.gcj.GCJInstantiatorBase.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.

Annotations
@Override