[root]/src/au/com/whitesquare/shutdown

| Author | Changes | Lines of Code | Lines per Change |
|---|---|---|---|
| steve | 9 (100.0%) | 218 (100.0%) | 24.2 |
Now supports an order for shutdown listeners.
If an existing listener has the same order as a newly supplied, then a RuntimeException will be thrown and the old listener will be re-added.
29 lines of code changed in:
Added fix to stop un-registering from the runtime when it is shutting down.
6 lines of code changed in:
Updated JavaDoc.
47 lines of code changed in:
If the shutdown manage recieves a exception when shutting down a
listener it now logs the error as a FATAL.
7 lines of code changed in:
Updated shutdown manager to catch any Throwable raised when a shutdown
is signaled. Throwable is just debugged and execution continues.
15 lines of code changed in:
Updated shutdown manager to dispose itself once it has recieved a shutdown
event.
10 lines of code changed in:
Created new ShutdownManager that objects can register with to be notified
when the JVM is shutting down. It also has a hook for applications to simulate
a JVM shutdown, for use when a context is reloading in a webapp.
104 lines of code changed in: