Package org.objenesis.instantiator.gcj
Class GCJSerializationInstantiator<T>
- java.lang.Object
-
- org.objenesis.instantiator.gcj.GCJInstantiatorBase<T>
-
- org.objenesis.instantiator.gcj.GCJSerializationInstantiator<T>
-
- All Implemented Interfaces:
ObjectInstantiator<T>
@Instantiator(SERIALIZATION) public class GCJSerializationInstantiator<T> extends GCJInstantiatorBase<T>
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.- See Also:
ObjectInstantiator
-
-
Field Summary
-
Fields inherited from class org.objenesis.instantiator.gcj.GCJInstantiatorBase
type
-
-
Constructor Summary
Constructors Constructor Description GCJSerializationInstantiator(java.lang.Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
newInstance()
Returns a new instance of an object.
-
-
-
Constructor Detail
-
GCJSerializationInstantiator
public GCJSerializationInstantiator(java.lang.Class<T> type)
-
-
Method Detail
-
newInstance
public T 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>
- Specified by:
newInstance
in classGCJInstantiatorBase<T>
- Returns:
- A new instance of an object.
-
-