Register a shutdown hook with the JVM runtime, closing this context on JVM shutdown unless it has already been closed at that time.
This method can be called multiple times. Only one shutdown hook (at max) will be registered for each context instance.
@see java.lang.Runtime#addShutdownHook
@see #close()
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.