Save This Page
Home » apache-openwebbeans-1.0.0-incubating-M3-sources » javax.enterprise.context.spi » [javadoc | source]
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.
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.