Java Reference
In-Depth Information
evaluator bean and calls the
approve
method 10 times, sleeping for one second between
each call.
5
Seriously. This is a fun demo to do in front of a live audience. Try it and see.
Listing 7.13. A demo application that loads the Groovy bean and calls
approve
10 times
The idea is to start the demo running and then, while the iteration is going, edit the source
output of the program resembles
6
Did you notice that the approve method was invoked with a null argument, acknowledging that the mortgage ap-
plication doesn't matter at all? That's part of the gag, so be sure to chuckle when you do it.