Package org.objenesis.instantiator.gcj
Class GCJInstantiatorBase<T>
java.lang.Object
org.objenesis.instantiator.gcj.GCJInstantiatorBase<T>
- All Implemented Interfaces:
ObjectInstantiator<T>
- Direct Known Subclasses:
GCJInstantiator
,GCJSerializationInstantiator
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.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static ObjectInputStream
(package private) static Method
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
abstract T
Returns a new instance of an object.
-
Field Details
-
newObjectMethod
-
dummyStream
-
type
-
-
Constructor Details
-
GCJInstantiatorBase
-
-
Method Details
-
initialize
private static void initialize() -
newInstance
Description copied from interface:ObjectInstantiator
Returns a new instance of an object. The returned object's class is defined by the implementation.- Specified by:
newInstance
in interfaceObjectInstantiator<T>
- Returns:
- A new instance of an object.
-