Class InjectableReferenceProviders

java.lang.Object
io.quarkus.arc.impl.InjectableReferenceProviders

public final class InjectableReferenceProviders extends Object
  • Method Details

    • destroy

      public static <T> void destroy(InjectableReferenceProvider<T> provider, T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
      Unwraps the provider if necessary and invokes Contextual.destroy(Object, CreationalContext).

      If there is a parent context available then attempt to remove the dependent instance.

      Type Parameters:
      T -
      Parameters:
      provider -
      instance -
      creationalContext -
      Throws:
      IllegalArgumentException - If the specified provider is not a bean