public class ServiceShutdownHook
extends Object
implements Runnable
JVM Shutdown hook for Service which will stop the
Service gracefully in case of JVM shutdown.
This hook uses a weak reference to the service, so
does not cause services to be retained after they have
been stopped and deferenced elsewhere.