Skip to content

Commit

Permalink
Use BeanContainer.beanInstance instead in docs
Browse files Browse the repository at this point in the history
- BeanContainer.instance is deprecated

(cherry picked from commit fb5371b)
  • Loading branch information
gastaldi authored and gsmet committed Aug 26, 2023
1 parent 3f48895 commit adcd33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/writing-extensions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit adcd33b

Please sign in to comment.