javax.enterprise.context.spi
public interface: Contextual [javadoc |
source]
All Known Implementing Classes:
Decorator, Interceptor, Bean
Each webbeans instance that is contained in the
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.
Parameters:
- type of the webbeans component
Also see:
- Context
- version:
$
- Rev: 815435 $ $Date: 2009-09-15 21:18:44 +0300 (Tue, 15 Sep 2009) $
Method from javax.enterprise.context.spi.Contextual Summary: |
---|
create, destroy |
Method from javax.enterprise.context.spi.Contextual Detail: |
public T create(CreationalContext<T> context)
Creates and returns a new instance of the webbeans component. |
public void destroy(T instance,
CreationalContext<T> context)
Destroys the instance. Any destroy logic is encapsulated
in this method. |