public class QuarkusPlatform extends Object implements PlatformProvider
| Constructor and Description |
|---|
QuarkusPlatform() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addInitializationException(Throwable throwable) |
void |
exit(Throwable cause) |
static void |
exitOnError()
Throws a
InitializationException exception to indicate errors during the startup. |
static void |
exitOnError(Throwable cause)
Similar behavior as per
#exitOnError but convenient to throw a InitializationException with a single
cause |
boolean |
isStarted() |
void |
onShutdown(Runnable shutdownHook) |
void |
onStartup(Runnable startupHook) |
public static void addInitializationException(Throwable throwable)
public static void exitOnError()
throws InitializationException
Throws a InitializationException exception to indicate errors during the startup.
Calling this method after the server is started has no effect but just the exception being thrown.
InitializationException - the exception holding all errors during startup.public static void exitOnError(Throwable cause) throws InitializationException
#exitOnError but convenient to throw a InitializationException with a single
causecause - the causeInitializationException - the initialization exception with the given cause.public void onStartup(Runnable startupHook)
onStartup in interface PlatformProviderpublic void onShutdown(Runnable shutdownHook)
onShutdown in interface PlatformProviderpublic void exit(Throwable cause)
exit in interface PlatformProviderpublic boolean isStarted()
Copyright © 2020 JBoss by Red Hat. All rights reserved.