Defines operations to create and destroy contextual instances of a certain type. Any implementation of Contextual is
called a contextual type. In particular, all beans are contextual types.
javax.enterprise.inject.spi.Bean
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: the contextual instancethe context in which this instance is being created creationalContext)Create a new instance of the contextual type. |
| public void | destroy(T
the contextual instance to destroy instance, CreationalContext<T> the context in which this instance was created creationalContext)Destroy an instance of the contextual type. |
| create | back to summary |
|---|---|
| public T create(CreationalContext<T> creationalContext) Create a new instance of the contextual type. Instances should use the given
| |
| destroy | back to summary |
|---|---|
| public void destroy(T instance, CreationalContext<T> creationalContext) Destroy an instance of the contextual type. Implementations should call
| |