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

public abstract Class GCJInstantiatorBase<T>

extends Object
implements ObjectInstantiator<T>
Class Inheritance
All Implemented Interfaces
org.springframework.objenesis.instantiator.ObjectInstantiator
Known Direct Subclasses
org.springframework.objenesis.instantiator.gcj.GCJSerializationInstantiator, org.springframework.objenesis.instantiator.gcj.GCJInstantiator
Imports
java.io.IOException, .ObjectInputStream, java.lang.reflect.Method, org.springframework.objenesis.ObjenesisException, org.springframework.objenesis.instantiator.ObjectInstantiator

Base class for GCJ-based instantiators. It initializes reflection access to method ObjectInputStream.newObject, as well as creating a dummy ObjectInputStream to be used as the "this" argument for the method.
Author
Leonardo Mesquita

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static ObjectInputStream
pack-priv static Method
protected final Class<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Field Detail

dummyStreamback to summary
pack-priv static ObjectInputStream dummyStream
newObjectMethodback to summary
pack-priv static Method newObjectMethod
typeback to summary
protected final Class<T> type

Constructor Detail

GCJInstantiatorBaseback to summary
public GCJInstantiatorBase(Class<T> type)

Method Detail

initializeback to summary
private static void initialize()
newInstanceback to summary
public abstract T newInstance()

Redeclares 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.

org.springframework.objenesis.instantiator.gcj back to summary

private Class GCJInstantiatorBase.DummyStream

extends ObjectInputStream
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.io.ObjectInputStream:
availableclosedefaultReadObjectenableResolveObjectgetObjectInputFilterreadreadreadBooleanreadBytereadCharreadClassDescriptorreadDoublereadFieldsreadFloatreadFullyreadFullyreadIntreadLinereadLongreadObjectreadObjectOverridereadShortreadStreamHeaderreadUnsharedreadUnsignedBytereadUnsignedShortreadUTFregisterValidationresolveClassresolveObjectresolveProxyClasssetObjectInputFilterskipBytes

Constructor Detail

DummyStreamback to summary
public DummyStream() throws IOException