Package dyntabs.scope

Class TabScopedContextHolder.BeanInstance<T>

java.lang.Object
dyntabs.scope.TabScopedContextHolder.BeanInstance<T>
Type Parameters:
T - the bean type
Enclosing class:
TabScopedContextHolder

public static class TabScopedContextHolder.BeanInstance<T> extends Object
Internal class that stores a bean instance together with its creational context. The creational context is needed for proper bean destruction.
  • Constructor Details

    • BeanInstance

      public BeanInstance(T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
      Creates a new BeanInstance.
      Parameters:
      instance - the bean instance
      creationalContext - the CDI creational context
  • Method Details

    • getInstance

      public T getInstance()
      Returns:
      the bean instance
    • getCreationalContext

      public jakarta.enterprise.context.spi.CreationalContext<T> getCreationalContext()
      Returns:
      the CDI creational context