[KEYCLOAK-11679] - Avoid reflection when handlign startup event

This commit is contained in:
Pedro Igor 2020-05-26 16:03:34 -03:00 committed by Stian Thorgersen
parent e825ec24cb
commit b6060c52b7

View file

@ -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;