Interface Creator<T>

  • All Known Implementing Classes:
    CreatorImpl

    public interface Creator<T>
    Encapsulates how to create an object.

    Signature-wise it's the same as Inhabitant but it carries an additional meaning.

    Author:
    Kohsuke Kawaguchi
    See Also:
    Creators
    • Method Detail

      • create

        T create()
          throws org.glassfish.hk2.api.MultiException
        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
        Throws:
        org.glassfish.hk2.api.MultiException