Class ShutdownHook

java.lang.Object
java.lang.Thread
com.codingchili.core.context.ShutdownHook
All Implemented Interfaces:
Runnable

public class ShutdownHook extends Thread
Registered as a shutdown hook for the JVM and is used to clean up the context.
  • Constructor Details

    • ShutdownHook

      public ShutdownHook(SystemContext context)
      Parameters:
      context - the context that is to be shut down on JVM exit.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • main

      public static void main(String[] args)