Class ShutdownProviderBase<H>
java.lang.Object
dev.webfx.platform.shutdown.spi.impl.ShutdownProviderBase<H>
- All Implemented Interfaces:
ShutdownProvider
- Author:
- Bruno Salmon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addPlatformShutdownHook
(H platformHook) void
addShutdownHook
(Runnable hook) protected abstract H
protected abstract void
exit
(int exitStatus) boolean
boolean
protected abstract void
removePlatformShutdownHook
(H platformHook) void
removeShutdownHook
(Runnable hook) void
softwareShutdown
(boolean exit, int exitStatus) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.platform.shutdown.spi.ShutdownProvider
canExit
-
Constructor Details
-
ShutdownProviderBase
public ShutdownProviderBase()
-
-
Method Details
-
isShuttingDown
public boolean isShuttingDown()- Specified by:
isShuttingDown
in interfaceShutdownProvider
-
isSoftwareShutdown
public boolean isSoftwareShutdown()- Specified by:
isSoftwareShutdown
in interfaceShutdownProvider
-
addShutdownHook
- Specified by:
addShutdownHook
in interfaceShutdownProvider
-
createPlatformShutdownHook
-
addPlatformShutdownHook
-
removeShutdownHook
- Specified by:
removeShutdownHook
in interfaceShutdownProvider
-
removePlatformShutdownHook
-
softwareShutdown
public void softwareShutdown(boolean exit, int exitStatus) - Specified by:
softwareShutdown
in interfaceShutdownProvider
-
exit
protected abstract void exit(int exitStatus)
-