[KEYCLOAK-11679] - Avoid reflection when handlign startup event
This commit is contained in:
parent
e825ec24cb
commit
b6060c52b7
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ public class QuarkusLifecycleObserver {
|
||||||
@Inject
|
@Inject
|
||||||
KeycloakApplication application;
|
KeycloakApplication application;
|
||||||
|
|
||||||
private void onStartupEvent(@Observes StartupEvent event) {
|
void onStartupEvent(@Observes StartupEvent event) {
|
||||||
|
|
||||||
Runnable startupHook = ((QuarkusPlatform) Platform.getPlatform()).startupHook;
|
Runnable startupHook = ((QuarkusPlatform) Platform.getPlatform()).startupHook;
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ public class QuarkusLifecycleObserver {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onShutdownEvent(@Observes ShutdownEvent event) {
|
void onShutdownEvent(@Observes ShutdownEvent event) {
|
||||||
|
|
||||||
Runnable shutdownHook = ((QuarkusPlatform) Platform.getPlatform()).shutdownHook;
|
Runnable shutdownHook = ((QuarkusPlatform) Platform.getPlatform()).shutdownHook;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue