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(