Clears all registered interceptors. This method can be called before or after shutdown has started, otherwise an exception will be thrown.
()
| 103 | * exception will be thrown. |
| 104 | */ |
| 105 | public static void clearExitInterceptors() |
| 106 | { |
| 107 | try |
| 108 | { |
| 109 | lock.lock(); |
| 110 | if (isShuttingDown) |
| 111 | { |
| 112 | throw new IllegalStateException("Cannot clear interceptors after shutdown has started"); |
| 113 | } |
| 114 | interceptors.clear(); |
| 115 | } finally |
| 116 | { |
| 117 | lock.unlock(); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Registers an exit function to be called when the JVM exits. This method can be called before or after shutdown has |