| Package | Description |
|---|---|
| javax.enterprise.context.spi | |
| javax.enterprise.inject.spi | |
| javax.enterprise.inject.spi.configurator |
| Modifier and Type | Method and Description |
|---|---|
T |
Contextual.create(CreationalContext<T> context)
Creates and returns a new instance of the webbeans component.
|
void |
Contextual.destroy(T instance,
CreationalContext<T> context)
Destroys the instance.
|
<T> T |
Context.get(Contextual<T> component,
CreationalContext<T> creationalContext)
If the context is not active, throws
ContextNotActiveException. |
| Modifier and Type | Method and Description |
|---|---|
<T> CreationalContext<T> |
BeanManager.createCreationalContext(Contextual<T> contextual)
Returns a new creational context implementation.
|
| Modifier and Type | Method and Description |
|---|---|
<T> InterceptionFactory<T> |
BeanManager.createInterceptionFactory(CreationalContext<T> creationalContext,
Class<T> clazz)
Can be used to wrap a CDI proxy around a contextual instance
inside of producer methods or Custom Beans.
|
Object |
BeanManager.getInjectableReference(InjectionPoint injectionPoint,
CreationalContext<?> ctx)
Gets injection point bean reference.
|
Object |
BeanManager.getReference(Bean<?> bean,
Type beanType,
CreationalContext<?> ctx)
Returns a bean instance reference for the given bean.
|
void |
InjectionTarget.inject(T instance,
CreationalContext<T> ctx)
Performs dependency injection upon the given object.
|
T |
Producer.produce(CreationalContext<T> creationalContext)
Its result depends on bean type.
|
| Modifier and Type | Method and Description |
|---|---|
<U extends T> |
BeanConfigurator.createWith(Function<CreationalContext<U>,U> callback)
Set a
Function to create a bean instance from a CreationalContext |
BeanConfigurator<T> |
BeanConfigurator.destroyWith(BiConsumer<T,CreationalContext<T>> callback)
Set a
BiConsumer to destroy a bean instance from a CreationalContext. |
<U extends T> |
ProducerConfigurator.produceWith(Function<CreationalContext<U>,U> callback) |
Copyright © 2025. All rights reserved.