On Fri, Apr 17, 2009 at 22:53, Mandy Chung <mandy.ch...@sun.com> wrote: > Hi Martin, > > Thanks for the quick review. > > Users should only add their shutdown hooks via the System.addShutdownHook() > method. java.lang.Shutdown is an implementation class for registering > internal hooks besides application shutdown hooks - including the shutdown > hook for Console and DeleteOnExitHook. Applications should not use the > Shutdown#add method.
I think you misunderstood me. I was musing about how, in the future, we could allow applications to also manipulate hooks during shutdown, using some kind of similar mechanism as done with "internal" hooks. Almost off-topic on my part. Martin