I had the same thought way back when we first came up with the
Application interface methods, and I agree - neither method name is
particularly nice. Providing a shutdown() method with a flag seemed
cleaner.
On Jun 24, 2009, at 9:11 AM, Noel Grandin wrote:
Purely for the reason of reducing confusion, it might simply be better
to split it into 2 methods:
boolean isShutdownOK(); // not great, but canShutdown() isn't much
better
void shutdown();
Simple, obvious, and hard to get wrong.
I think the method signatures as currently defined are OK. They
parallel (somewhat) the applet lifecycle methods. My question to you
all was - should the return value of shutdown() mean "approve" or
"deny"? It is currently defined as "approve", but I'm leaning towards
changing it to the latter.