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

    Modifier and Type
    Method
    Description
    If push was called on this CreationalContext, returns the pushed object.
    boolean
    Returns whether CreationalContext.push(Object) was called on this CreationalContext.
    boolean
    Returns whether CreationalContext.release() was called on this CreationalContext.

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

    push, release
  • Method Details

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