| Package | Description |
|---|---|
| javax.enterprise.context.spi | |
| javax.enterprise.inject.spi |
Java Dependency Injection programmatic APIs.
|
| Modifier and Type | Method and Description |
|---|---|
T |
Contextual.create(CreationalContext<T> creationalContext)
Creates a new instance for the Contextual's type.
|
void |
Contextual.destroy(T instance,
CreationalContext<T> creationalContext)
Destroys an instance for the Contextual's type.
|
<T> T |
Context.get(Contextual<T> bean,
CreationalContext<T> creationalContext)
Internal SPI method to create a new instance of a bean, when given
a creational context.
|
| Modifier and Type | Method and Description |
|---|---|
<T> CreationalContext<T> |
BeanManager.createCreationalContext(Contextual<T> contextual)
Creates a new CreationalContext for instantiating a bean.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
BeanManager.getInjectableReference(InjectionPoint ij,
CreationalContext<?> ctx)
Internal callback during creation to get a new injection instance.
|
java.lang.Object |
BeanManager.getReference(Bean<?> bean,
java.lang.reflect.Type beanType,
CreationalContext<?> env)
Returns an instance for the given bean.
|
void |
InjectionTarget.inject(T instance,
CreationalContext<T> ctx)
Inject the bean.
|
T |
Producer.produce(CreationalContext<T> ctx)
Instantiate the bean.
|