Class GCJInstantiatorBase<T>

java.lang.Object
org.objenesis.instantiator.gcj.GCJInstantiatorBase<T>
All Implemented Interfaces:
ObjectInstantiator<T>
Direct Known Subclasses:
GCJInstantiator, GCJSerializationInstantiator

public abstract class GCJInstantiatorBase<T> extends Object implements ObjectInstantiator<T>
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.
  • Field Details

    • type

      protected final Class<T> type
  • Constructor Details

    • GCJInstantiatorBase

      public GCJInstantiatorBase(Class<T> type)
  • Method Details

    • newInstance

      public abstract 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 interface ObjectInstantiator<T>
      Returns:
      A new instance of an object.