Package ghidra.framework

# Class ShutdownHookRegistry

java.lang.Object
ghidra.framework.ShutdownHookRegistry

public class ShutdownHookRegistry extends Object

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `ShutdownHookRegistry.ShutdownHook`
  `ShutdownHook` wrapper class for shutdown callback

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ShutdownHookRegistry()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static ShutdownHookRegistry.ShutdownHook`
  `addShutdownHook(Runnable r, ShutdownPriority priority)`
  Install a shutdown hook at the specified priority.
  `static void`
  `removeShutdownHook(ShutdownHookRegistry.ShutdownHook hook)`
  Remove a shutdown hook previously registered.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ShutdownHookRegistry

    public ShutdownHookRegistry()

- ## Method Details

  - ### addShutdownHook

    public static ShutdownHookRegistry.ShutdownHook addShutdownHook(Runnable r, ShutdownPriority priority)
    Install a shutdown hook at the specified priority. If the hook has no specific priority or sensitivity to when it runs, the standard Java Runtime shutdown hook mechanism should be used. Hooks with a higher priority value will run first
    Parameters:
      `r` - shutdown hook runnable
      `priority` - relative priority

  - ### removeShutdownHook

    public static void removeShutdownHook(ShutdownHookRegistry.ShutdownHook hook)
    Remove a shutdown hook previously registered. Hooks with a higher priority value will run first
    Parameters:
      `hook` - shutdown hook