public interface Contextual<T>
Bean
interface extends Contextual.
Applications will not use Contextual, because its internal SPI, called by
the javax.enterprise.inject.spi.Manager
during bean creation.Modifier and Type | Method and Description |
---|---|
T |
create(CreationalContext<T> creationalContext)
Creates a new instance for the Contextual's type.
|
void |
destroy(T instance,
CreationalContext<T> creationalContext)
Destroys an instance for the Contextual's type.
|
T create(CreationalContext<T> creationalContext)
creationalContext
- the creation context used to support circular
references.void destroy(T instance, CreationalContext<T> creationalContext)
@Disposal
method
@PreDestroy
methods
instance
- the instance to destroy