Class CreatorImpl<T>

  • All Implemented Interfaces:
    Creator<T>

    public class CreatorImpl<T>
    extends Object
    implements Creator<T>
    Author:
    jwells
    • Constructor Detail

      • CreatorImpl

        public CreatorImpl​(Class<?> c,
                           org.glassfish.hk2.api.ServiceLocator locator)
        Parameters:
        c -
        locator -
        metadata -
        d -
    • Method Detail

      • create

        public T create()
        Description copied from interface: Creator
        Creates a new instance. The caller is supposed to call the Creator#initialize(Object, Inhabitant) right away. This 2-phase initialization allows us to handle cycle references correctly
        Specified by:
        create in interface Creator<T>