Interface Contextuals.Inspectable<T>

Type Parameters:
T - type of the instances
All Superinterfaces:
jakarta.enterprise.context.spi.Contextual<T>
Enclosing interface:
Contextuals

public static interface Contextuals.Inspectable<T> extends jakarta.enterprise.context.spi.Contextual<T>
A Contextual that can be inspected.
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.enterprise.context.spi.CreationalContext<T>
    Returns the CreationalContext passed to Contextual.create(CreationalContext).
    jakarta.enterprise.context.spi.CreationalContext<T>
    Returns the CreationalContext passed to Contextual.destroy(Object, CreationalContext).
    Returns the instance passed to Contextual.destroy(Object, CreationalContext).

    Methods inherited from interface jakarta.enterprise.context.spi.Contextual

    create, destroy
  • Method Details

    • getCreationalContextPassedToCreate

      jakarta.enterprise.context.spi.CreationalContext<T> getCreationalContextPassedToCreate()
      Returns the CreationalContext passed to Contextual.create(CreationalContext). Returns null if create was not called yet.
      Returns:
      the CreationalContext passed to Contextual.create(CreationalContext)
    • getInstancePassedToDestroy

      T getInstancePassedToDestroy()
      Returns the instance passed to Contextual.destroy(Object, CreationalContext). Returns null if destroy was not called yet.
      Returns:
      the instance passed to Contextual.destroy(Object, CreationalContext)
    • getCreationalContextPassedToDestroy

      jakarta.enterprise.context.spi.CreationalContext<T> getCreationalContextPassedToDestroy()
      Returns the CreationalContext passed to Contextual.destroy(Object, CreationalContext). Returns null if destroy was not called yet.
      Returns:
      the CreationalContext passed to Contextual.destroy(Object, CreationalContext)