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 authored and galderz committed Feb 15, 2023
1 parent e009a97 commit 680b903
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 680b903

Please sign in to comment.