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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
create()
Creates a new instance.
-
-
-
Method Detail
-
create
T create() throws org.glassfish.hk2.api.MultiException
Creates a new instance. The caller is supposed to call theCreator#initialize(Object, Inhabitant)
right away. This 2-phase initialization allows us to handle cycle references correctly- Throws:
org.glassfish.hk2.api.MultiException
-
-