Lines Matching refs:hook
113 * Registers a new virtual-machine shutdown hook.
130 * <p> A <i>shutdown hook</i> is simply an initialized but unstarted
145 * new shutdown hook or de-register a previously-registered hook.
165 * hook.
185 * @param hook
189 * If the specified hook has already been registered,
190 * or if it can be determined that the hook is already running or
206 public void addShutdownHook(Thread hook) {
211 ApplicationShutdownHooks.add(hook);
215 * De-registers a previously-registered virtual-machine shutdown hook. <p>
217 * @param hook the hook to remove
218 * @return <tt>true</tt> if the specified hook had previously been
234 public boolean removeShutdownHook(Thread hook) {
239 return ApplicationShutdownHooks.remove(hook);