mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
Fix for Issue 4 - Allow programmatic shutdown of EbeanServer
This commit is contained in:
1 parent
384931d92e
commit
bcce1a7148
31 files changed
+1397
-2073
No files matched your search
@@ -6,23 +6,12 @@ package com.avaje.ebeaninternal.server.lib;
|
||||
* This is the ShutdownHook that gets added to Runtime.
|
||||
* It will try to shutdown the system cleanly when the JVM exits.
|
||||
* It is best to add your own shutdown hooks to StartStop.
|
||||
*
|
||||
*/
|
||||
class ShutdownHook extends Thread {
|
||||
|
||||
ShutdownHook() {
|
||||
}
|
||||
|
||||
// /**
|
||||
// * Register this as a Shutdown hook with the Runtime.
|
||||
// */
|
||||
// public static void registerWithRuntime() {
|
||||
//
|
||||
// ShutdownHook hook = new ShutdownHook();
|
||||
// Runtime.getRuntime().addShutdownHook(hook);
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* Fired by the JVM Runtime on shutdown.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user