Package org.int4.dirk.spi.scope
Interface CreationalContext<T>
-
- Type Parameters:
T- the type of instance this context can produce
public interface CreationalContext<T>Context used to create and destroy instances with injection information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCreationalContext.Reference<T>A reference to an instance created by theCreationalContextwith which the created instance can be released.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreationalContext.Reference<T>create()Creates a new instance of typeTwrapped in aCreationalContext.Reference.
-
-
-
Method Detail
-
create
CreationalContext.Reference<T> create() throws CreationException, AmbiguousResolutionException, UnsatisfiedResolutionException
Creates a new instance of typeTwrapped in aCreationalContext.Reference.- Returns:
- a
CreationalContext.Reference, nevernull - Throws:
CreationException- when an instance could not be createdAmbiguousResolutionException- when multiple instances could be created but at most one was requiredUnsatisfiedResolutionException- when no instance could be created but at least one was required
-
-