Package io.quarkus.arc.impl
Class InjectableReferenceProviders
java.lang.Object
io.quarkus.arc.impl.InjectableReferenceProviders
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voiddestroy(InjectableReferenceProvider<T> provider, T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) Unwraps the provider if necessary and invokesContextual.destroy(Object, CreationalContext).
-
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 invokesContextual.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
-