From 6931c56e9adf25fbdd9d5d71eb0162b31d44ada0 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 3 Feb 2023 09:33:37 +0200 Subject: [PATCH] Update docs to show BuildProducer use as method parameter instead of field Closes: #29605 --- docs/src/main/asciidoc/writing-extensions.adoc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/src/main/asciidoc/writing-extensions.adoc b/docs/src/main/asciidoc/writing-extensions.adoc index 51eebdcda1435..91e6bcb283a32 100644 --- a/docs/src/main/asciidoc/writing-extensions.adoc +++ b/docs/src/main/asciidoc/writing-extensions.adoc @@ -2684,13 +2684,9 @@ Not all configuration or resources can be consumed at build time. If you have cl [source,java] ---- public final class MyExtProcessor { - @Inject - BuildProducer resource; - @Inject - BuildProducer resourceBundle; @BuildStep - void registerNativeImageResources() { + void registerNativeImageResources(BuildProducer resource, BuildProducer resourceBundle) { resource.produce(new NativeImageResourceBuildItem("/security/runtime.keys")); //<1> resource.produce(new NativeImageResourceBuildItem(