MCPcopy Create free account
hub / github.com/PCGen/pcgen / clearExitInterceptors

Method clearExitInterceptors

code/src/java/pcgen/util/GracefulExit.java:105–119  ·  view source on GitHub ↗

Clears all registered interceptors. This method can be called before or after shutdown has started, otherwise an exception will be thrown.

()

Source from the content-addressed store, hash-verified

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

Callers 1

setUpMethod · 0.95

Calls 1

clearMethod · 0.65

Tested by 1

setUpMethod · 0.76