Skip to content

Commit

Permalink
Merge pull request #30833 from geoand/#29605
Browse files Browse the repository at this point in the history
Update docs to show BuildProducer use as method parameter instead of field
  • Loading branch information
gsmet authored Feb 3, 2023
2 parents 65b1bc5 + 6931c56 commit 6fa0826
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 6fa0826

Please sign in to comment.