From adcd33b802fccefd55aa870c3fab355ee89d6e39 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 24 Aug 2023 23:21:02 -0300 Subject: [PATCH] Use BeanContainer.beanInstance instead in docs - BeanContainer.instance is deprecated (cherry picked from commit fb5371b0c5abc31423e990bb73aef3902b6c324b) --- docs/src/main/asciidoc/writing-extensions.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/writing-extensions.adoc b/docs/src/main/asciidoc/writing-extensions.adoc index 5f558e6b7400f..fd91dd2dbf3b0 100644 --- a/docs/src/main/asciidoc/writing-extensions.adoc +++ b/docs/src/main/asciidoc/writing-extensions.adoc @@ -2527,7 +2527,7 @@ You can use the `io.quarkus.arc.runtime.BeanContainer` interface to interact wit TestBuildAndRunTimeConfig buildTimeConfig, TestRunTimeConfig runTimeConfig) { log.info("Begin BeanContainerListener callback\n"); - IConfigConsumer instance = beanContainer.instance(beanClass); <4> + IConfigConsumer instance = beanContainer.beanInstance(beanClass); <4> instance.loadConfig(buildTimeConfig, runTimeConfig); <5> log.infof("configureBeans, instance=%s\n", instance); }