## Uses of Interface
javax.enterprise.context.spi.Contextual

- Packages that use Contextual
  Package | Description
  --- | ---
  javax.enterprise.context.spi | The custom context SPI.
  javax.enterprise.inject.spi | The portable extension integration SPI.

- - ### Uses of Contextual in javax.enterprise.context.spi

    Methods in javax.enterprise.context.spi with parameters of type Contextual
    Modifier and Type | Method and Description
    --- | ---
    `void` | AlterableContext.`destroy(Contextual<?> contextual)` Destroy the existing contextual instance.
    `<T> T` | Context.`get(Contextual<T> contextual)` Return an existing instance of a certain contextual type or a null value.
    `<T> T` | Context.`get(Contextual<T> contextual, CreationalContext<T> creationalContext)` Return an existing instance of certain contextual type or create a new instance by calling `create(CreationalContext)` and return the new instance.

  - ### Uses of Contextual in javax.enterprise.inject.spi

    Subinterfaces of Contextual in javax.enterprise.inject.spi
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `Bean<T>` Represents an enabled bean.
    `interface` | `Decorator<T>` Represents an enabled decorator.
    `interface` | `Interceptor<T>` Represents an enabled interceptor.

    Methods in javax.enterprise.inject.spi with parameters of type Contextual
    Modifier and Type | Method and Description
    --- | ---
    `<T> CreationalContext<T>` | BeanManager.`createCreationalContext(Contextual<T> contextual)` Obtain an instance of a `CreationalContext` for the given contextual type, or for a non-contextual object.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.