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); }