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 Summary

    Modifier and Type
    Method
    Description
    Creates a new instance.
  • Method Details

    • 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