Class ConstructorInstanceFactory<T>

  • All Implemented Interfaces:
    InstanceFactory<T>

    public class ConstructorInstanceFactory<T>
    extends java.lang.Object
    implements InstanceFactory<T>
    Author:
    Stuart Douglas
    • Constructor Summary

      Constructors 
      Constructor Description
      ConstructorInstanceFactory​(java.lang.reflect.Constructor<T> constructor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      InstanceHandle<T> createInstance()
      Factory that creates a fully injected instance.
      • Methods inherited from class java.lang.Object

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

      • ConstructorInstanceFactory

        public ConstructorInstanceFactory​(java.lang.reflect.Constructor<T> constructor)
    • Method Detail

      • createInstance

        public InstanceHandle<T> createInstance()
                                         throws java.lang.InstantiationException
        Description copied from interface: InstanceFactory
        Factory that creates a fully injected instance.
        Specified by:
        createInstance in interface InstanceFactory<T>
        Returns:
        The fully injected instance
        Throws:
        java.lang.InstantiationException