public class org.eclipse.jetty.util.thread.ShutdownThread extends java.lang.Thread
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.eclipse.jetty.util.thread.ShutdownThread
  super_class: java.lang.Thread
{
  private static final org.eclipse.jetty.util.log.Logger LOG;
    descriptor: Lorg/eclipse/jetty/util/log/Logger;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final org.eclipse.jetty.util.thread.ShutdownThread _thread;
    descriptor: Lorg/eclipse/jetty/util/thread/ShutdownThread;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private boolean _hooked;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private final java.util.List<org.eclipse.jetty.util.component.LifeCycle> _lifeCycles;
    descriptor: Ljava/util/List;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/List<Lorg/eclipse/jetty/util/component/LifeCycle;>;

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 38
            ldc Lorg/eclipse/jetty/util/thread/ShutdownThread;
            invokestatic org.eclipse.jetty.util.log.Log.getLogger:(Ljava/lang/Class;)Lorg/eclipse/jetty/util/log/Logger;
            putstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/eclipse/jetty/util/log/Logger;
         1: .line 39
            new org.eclipse.jetty.util.thread.ShutdownThread
            dup
            invokespecial org.eclipse.jetty.util.thread.ShutdownThread.<init>:()V
            putstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.eclipse.jetty.util.thread.ShutdownThread this
         0: .line 49
            aload 0 /* this */
            invokespecial java.lang.Thread.<init>:()V
         1: .line 42
            aload 0 /* this */
            new java.util.concurrent.CopyOnWriteArrayList
            dup
            invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:()V
            putfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
         2: .line 51
            return
        end local 0 // org.eclipse.jetty.util.thread.ShutdownThread this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/eclipse/jetty/util/thread/ShutdownThread;

  private synchronized void hook();
    descriptor: ()V
    flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // org.eclipse.jetty.util.thread.ShutdownThread this
         0: .line 57
            aload 0 /* this */
            getfield org.eclipse.jetty.util.thread.ShutdownThread._hooked:Z
            ifne 2
         1: .line 58
            invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
            aload 0 /* this */
            invokevirtual java.lang.Runtime.addShutdownHook:(Ljava/lang/Thread;)V
         2: .line 59
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield org.eclipse.jetty.util.thread.ShutdownThread._hooked:Z
         3: .line 60
            goto 7
         4: .line 61
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 1 /* e */
        start local 1 // java.lang.Exception e
         5: .line 63
            getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/eclipse/jetty/util/log/Logger;
            aload 1 /* e */
            invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
         6: .line 64
            getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/eclipse/jetty/util/log/Logger;
            ldc "shutdown already commenced"
            iconst_0
            anewarray java.lang.Object
            invokeinterface org.eclipse.jetty.util.log.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
        end local 1 // java.lang.Exception e
         7: .line 66
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.eclipse.jetty.util.thread.ShutdownThread this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lorg/eclipse/jetty/util/thread/ShutdownThread;
            5    7     1     e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           0     3       4  Class java.lang.Exception

  private synchronized void unhook();
    descriptor: ()V
    flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // org.eclipse.jetty.util.thread.ShutdownThread this
         0: .line 72
            aload 0 /* this */
            iconst_0
            putfield org.eclipse.jetty.util.thread.ShutdownThread._hooked:Z
         1: .line 73
            invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
            aload 0 /* this */
            invokevirtual java.lang.Runtime.removeShutdownHook:(Ljava/lang/Thread;)Z
            pop
         2: .line 74
            goto 6
         3: .line 75
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 1 /* e */
        start local 1 // java.lang.Exception e
         4: .line 77
            getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/eclipse/jetty/util/log/Logger;
            aload 1 /* e */
            invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
         5: .line 78
            getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/eclipse/jetty/util/log/Logger;
            ldc "shutdown already commenced"
            iconst_0
            anewarray java.lang.Object
            invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
        end local 1 // java.lang.Exception e
         6: .line 80
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.eclipse.jetty.util.thread.ShutdownThread this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lorg/eclipse/jetty/util/thread/ShutdownThread;
            4    6     1     e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           0     2       3  Class java.lang.Exception

  public static org.eclipse.jetty.util.thread.ShutdownThread getInstance();
    descriptor: ()Lorg/eclipse/jetty/util/thread/ShutdownThread;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 89
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public static synchronized void register(org.eclipse.jetty.util.component.LifeCycle[]);
    descriptor: ([Lorg/eclipse/jetty/util/component/LifeCycle;)V
    flags: (0x00a9) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED, ACC_VARARGS
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.eclipse.jetty.util.component.LifeCycle[] lifeCycles
         0: .line 94
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
            aload 0 /* lifeCycles */
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
            pop
         1: .line 95
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
            invokeinterface java.util.List.size:()I
            ifle 3
         2: .line 96
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            invokevirtual org.eclipse.jetty.util.thread.ShutdownThread.hook:()V
         3: .line 97
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.eclipse.jetty.util.component.LifeCycle[] lifeCycles
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0  lifeCycles  [Lorg/eclipse/jetty/util/component/LifeCycle;
    MethodParameters:
            Name  Flags
      lifeCycles  

  public static synchronized void register(int, org.eclipse.jetty.util.component.LifeCycle[]);
    descriptor: (I[Lorg/eclipse/jetty/util/component/LifeCycle;)V
    flags: (0x00a9) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED, ACC_VARARGS
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // int index
        start local 1 // org.eclipse.jetty.util.component.LifeCycle[] lifeCycles
         0: .line 101
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
            iload 0 /* index */
            aload 1 /* lifeCycles */
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            invokeinterface java.util.List.addAll:(ILjava/util/Collection;)Z
            pop
         1: .line 102
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
            invokeinterface java.util.List.size:()I
            ifle 3
         2: .line 103
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            invokevirtual org.eclipse.jetty.util.thread.ShutdownThread.hook:()V
         3: .line 104
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.eclipse.jetty.util.component.LifeCycle[] lifeCycles
        end local 0 // int index
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0       index  I
            0    4     1  lifeCycles  [Lorg/eclipse/jetty/util/component/LifeCycle;
    MethodParameters:
            Name  Flags
      index       
      lifeCycles  

  public static synchronized void deregister(org.eclipse.jetty.util.component.LifeCycle);
    descriptor: (Lorg/eclipse/jetty/util/component/LifeCycle;)V
    flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.eclipse.jetty.util.component.LifeCycle lifeCycle
         0: .line 108
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
            aload 0 /* lifeCycle */
            invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
            pop
         1: .line 109
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
            invokeinterface java.util.List.size:()I
            ifne 3
         2: .line 110
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            invokevirtual org.eclipse.jetty.util.thread.ShutdownThread.unhook:()V
         3: .line 111
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.eclipse.jetty.util.component.LifeCycle lifeCycle
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    4     0  lifeCycle  Lorg/eclipse/jetty/util/component/LifeCycle;
    MethodParameters:
           Name  Flags
      lifeCycle  

  public static synchronized boolean isRegistered(org.eclipse.jetty.util.component.LifeCycle);
    descriptor: (Lorg/eclipse/jetty/util/component/LifeCycle;)Z
    flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.eclipse.jetty.util.component.LifeCycle lifeCycle
         0: .line 115
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
            aload 0 /* lifeCycle */
            invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
            ireturn
        end local 0 // org.eclipse.jetty.util.component.LifeCycle lifeCycle
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    1     0  lifeCycle  Lorg/eclipse/jetty/util/component/LifeCycle;
    MethodParameters:
           Name  Flags
      lifeCycle  

  public void run();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=4, args_size=1
        start local 0 // org.eclipse.jetty.util.thread.ShutdownThread this
         0: .line 121
            getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
            getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 2
            goto 11
      StackMap locals: org.eclipse.jetty.util.thread.ShutdownThread top java.util.Iterator
      StackMap stack:
         1: aload 2
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast org.eclipse.jetty.util.component.LifeCycle
            astore 1 /* lifeCycle */
        start local 1 // org.eclipse.jetty.util.component.LifeCycle lifeCycle
         2: .line 125
            aload 1 /* lifeCycle */
            invokeinterface org.eclipse.jetty.util.component.LifeCycle.isStarted:()Z
            ifeq 5
         3: .line 127
            aload 1 /* lifeCycle */
            invokeinterface org.eclipse.jetty.util.component.LifeCycle.stop:()V
         4: .line 128
            getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/eclipse/jetty/util/log/Logger;
            ldc "Stopped {}"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* lifeCycle */
            aastore
            invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
         5: .line 131
      StackMap locals: org.eclipse.jetty.util.thread.ShutdownThread org.eclipse.jetty.util.component.LifeCycle java.util.Iterator
      StackMap stack:
            aload 1 /* lifeCycle */
            instanceof org.eclipse.jetty.util.component.Destroyable
            ifeq 11
         6: .line 133
            aload 1 /* lifeCycle */
            checkcast org.eclipse.jetty.util.component.Destroyable
            invokeinterface org.eclipse.jetty.util.component.Destroyable.destroy:()V
         7: .line 134
            getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/eclipse/jetty/util/log/Logger;
            ldc "Destroyed {}"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* lifeCycle */
            aastore
            invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
         8: .line 136
            goto 11
         9: .line 137
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 3 /* ex */
        start local 3 // java.lang.Exception ex
        10: .line 139
            getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/eclipse/jetty/util/log/Logger;
            aload 3 /* ex */
            invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/Throwable;)V
        end local 3 // java.lang.Exception ex
        end local 1 // org.eclipse.jetty.util.component.LifeCycle lifeCycle
        11: .line 121
      StackMap locals: org.eclipse.jetty.util.thread.ShutdownThread top java.util.Iterator
      StackMap stack:
            aload 2
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 1
        12: .line 142
            return
        end local 0 // org.eclipse.jetty.util.thread.ShutdownThread this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   13     0       this  Lorg/eclipse/jetty/util/thread/ShutdownThread;
            2   11     1  lifeCycle  Lorg/eclipse/jetty/util/component/LifeCycle;
           10   11     3         ex  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           2     8       9  Class java.lang.Exception
}
SourceFile: "ShutdownThread.java"