Interface CreationalContexts.Inspectable<T>

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Object getLastBeanPushed()
      If push was called on this CreationalContext, returns the pushed object.
      boolean isPushCalled()
      Returns whether CreationalContext.push(Object) was called on this CreationalContext.
      boolean isReleaseCalled()
      Returns whether CreationalContext.release() was called on this CreationalContext.
      • Methods inherited from interface jakarta.enterprise.context.spi.CreationalContext

        push, release
    • Method Detail

      • isPushCalled

        boolean isPushCalled()
        Returns whether CreationalContext.push(Object) was called on this CreationalContext.
        Returns:
        whether CreationalContext.push(Object) was called on this CreationalContext.
      • getLastBeanPushed

        Object getLastBeanPushed()
        If push was called on this CreationalContext, returns the pushed object. Returns null otherwise.
        Returns:
        the pushed object if push was called, otherwise null
      • isReleaseCalled

        boolean isReleaseCalled()
        Returns whether CreationalContext.release() was called on this CreationalContext.
        Returns:
        whether CreationalContext.release() was called on this CreationalContext.