T
- type of the webbeans componentpublic interface Contextual<T>
Context
must be defined as Contextual
.
This interface defines the creating and destroying of the webbeans instances
that are contained in the its Context
instance.Context
Modifier and Type | Method and Description |
---|---|
T |
create(CreationalContext<T> context)
Creates and returns a new instance of the webbeans component.
|
void |
destroy(T instance,
CreationalContext<T> context)
Destroys the instance.
|
T create(CreationalContext<T> context)
context
- new creational context instanceCreationException
- if any exception occursvoid destroy(T instance, CreationalContext<T> context)
instance
- already created webbeans instancecontext
- creational contextCopyright © 2016. All rights reserved.