public final class RuntimeSupport extends Object implements org.graalvm.nativeimage.impl.VMRuntimeSupport
Modifier and Type | Method and Description |
---|---|
void |
addCommandPlugin(CompilerCommandPlugin plugin) |
void |
addShutdownHook(Runnable hook) |
void |
addStartupHook(Runnable hook) |
void |
addTearDownHook(Runnable tearDownHook)
Adds a tear down hook that is executed before the isolate torn down.
|
void |
executeStartupHooks() |
static void |
executeTearDownHooks()
Called only internally as part of the isolate tear down process.
|
static RuntimeSupport |
getRuntimeSupport()
Get the singleton instance.
|
static void |
initializeRuntimeSupport()
Construct and register the singleton instance, if necessary.
|
void |
shutdown() |
public static void initializeRuntimeSupport()
public static RuntimeSupport getRuntimeSupport()
public void addStartupHook(Runnable hook)
public void executeStartupHooks()
executeStartupHooks
in interface org.graalvm.nativeimage.impl.VMRuntimeSupport
public void addShutdownHook(Runnable hook)
public void addTearDownHook(Runnable tearDownHook)
tearDownHook
- hook to executed on isolate tear down.public static void executeTearDownHooks()
public void addCommandPlugin(CompilerCommandPlugin plugin)
public void shutdown()
shutdown
in interface org.graalvm.nativeimage.impl.VMRuntimeSupport