|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Contextual<T>
Contextual creates and destroys instances of a given type. In particular,
the Bean
interface extends Contextual.
Applications will not use Contextual, because its internal SPI, called by
the javax.enterprise.inject.spi.Manager
during bean creation.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |