Skip to content

Commit

Permalink
Update docs to show BuildProducer use as method parameter instead of …
Browse files Browse the repository at this point in the history
…field

Closes: quarkusio#29605
  • Loading branch information
geoand committed Feb 3, 2023
1 parent c7d6ba2 commit 6931c56
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/src/main/asciidoc/writing-extensions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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<NativeImageResourceBuildItem> resource;
@Inject
BuildProducer<NativeImageResourceBundleBuildItem> resourceBundle;
@BuildStep
void registerNativeImageResources() {
void registerNativeImageResources(BuildProducer<NativeImageResourceBuildItem> resource, BuildProducer<NativeImageResourceBundleBuildItem> resourceBundle) {
resource.produce(new NativeImageResourceBuildItem("/security/runtime.keys")); //<1>
resource.produce(new NativeImageResourceBuildItem(
Expand Down

0 comments on commit 6931c56

Please sign in to comment.