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

invalid reference
Inhabitant
but it carries an additional meaning.
Author:
Kohsuke Kawaguchi
See Also:
  • invalid reference
    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
      invalid reference
      Creator#initialize(Object, Inhabitant)
      right away. This 2-phase initialization allows us to handle cycle references correctly
      Throws:
      org.glassfish.hk2.api.MultiException