Class ImmediateInstanceFactory<T>

  • All Implemented Interfaces:
    InstanceFactory<T>

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

      • ImmediateInstanceFactory

        public ImmediateInstanceFactory​(T instance)
    • 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