No way that I'm aware of.
See my other post ;-)
Doing that goes against pretty much every OO
principle. If your design requires it, you very likely have a faulty design.
I developed a JSP-like server a couple of years ago (before
there was JSP), where I had to disable the developers of
Java-enabled pages to do something like
<% System.exit(0); %>
(in JSP-syntax, my own HTML-to-Java-Switch looked differently)
leading to the shutdown of the server. The server itself should
still be able to gracefully shut down if needed.
For this you need to determine if there was a "JSP"-page
involved anywhere in the line of calling classes to find
out if a (AFAIR) doExit in Securemanager will lead to an exception
(preventing shutdown) or not.
Regards, Lothar
--
Lothar Kimmeringer E-Mail: (e-mail address removed)
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong
questions!