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 Detail

      • 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)