Skip to content

Commit

Permalink
Fix issue with provider registration
Browse files Browse the repository at this point in the history
Fixes quarkusio#19474

(cherry picked from commit 2910f29)
  • Loading branch information
stuartwdouglas authored and gsmet committed Nov 30, 2021
1 parent 48813f6 commit b59a335
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 b59a335

Please sign in to comment.