Skip to content

Commit

Permalink
Fix issue with provider registration
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Aug 19, 2021
1 parent 5db1e7a commit 2910f29
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ public void registerPasswordProvider(ElytronCommonRecorder recorder) {
recorder.registerPasswordProvider();
}

/**
* Graal VM now seems to loose providers registered at static init
*
* We re-register at runtime (which is a no-op in JVM mode)
*/
@BuildStep
@Record(ExecutionTime.RUNTIME_INIT)
public void registerPasswordProviderForNative(ElytronCommonRecorder recorder) {
recorder.registerPasswordProvider();
}

/**
* Register the Elytron-provided password factory SPI implementation
*
Expand Down

0 comments on commit 2910f29

Please sign in to comment.