Class QuarkusPlatform
- java.lang.Object
-
- org.keycloak.quarkus.runtime.integration.QuarkusPlatform
-
- All Implemented Interfaces:
PlatformProvider
public class QuarkusPlatform extends Object implements PlatformProvider
-
-
Constructor Summary
Constructors Constructor Description QuarkusPlatform()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddInitializationException(Throwable throwable)voidexit(Throwable cause)static voidexitOnError()Throws aInitializationExceptionexception to indicate errors during the startup.FilegetTmpDirectory()booleanisStarted()voidonShutdown(Runnable shutdownHook)voidonStartup(Runnable startupHook)
-
-
-
Method Detail
-
addInitializationException
public static void addInitializationException(Throwable throwable)
-
exitOnError
public static void exitOnError() throws InitializationExceptionThrows a
InitializationExceptionexception to indicate errors during the startup.Calling this method after the server is started has no effect but just the exception being thrown.
- Throws:
InitializationException- the exception holding all errors during startup.
-
onStartup
public void onStartup(Runnable startupHook)
- Specified by:
onStartupin interfacePlatformProvider
-
onShutdown
public void onShutdown(Runnable shutdownHook)
- Specified by:
onShutdownin interfacePlatformProvider
-
exit
public void exit(Throwable cause)
- Specified by:
exitin interfacePlatformProvider
-
isStarted
public boolean isStarted()
-
getTmpDirectory
public File getTmpDirectory()
- Specified by:
getTmpDirectoryin interfacePlatformProvider
-
-