Class DelegatingToExoticInstantiator<T>

  • Type Parameters:
    T - type of the class instantiated
    All Implemented Interfaces:
    ObjectInstantiator<T>
    Direct Known Subclasses:
    MagicInstantiator, ProxyingInstantiator

    public abstract class DelegatingToExoticInstantiator<T>
    extends java.lang.Object
    implements ObjectInstantiator<T>
    Helper class extended by instantiators for which the implementation was moved to the exotic project.
    Author:
    Henri Tremblay
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DelegatingToExoticInstantiator​(java.lang.String className, 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelegatingToExoticInstantiator

        protected DelegatingToExoticInstantiator​(java.lang.String className,
                                                 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 interface ObjectInstantiator<T>
        Returns:
        A new instance of an object.