Elided code was not clearly marked Both listener classes on p. 134 should include a private declaration of the Logger Singleton class: private static Logger logger; This declaration was removed from the code listing, but not discussed in the text.
This pertains to Item 22, and Item 45. Question 1: Can you further explain the idiom you recommend on top of page 133 (see below) to raise an event. Specifically, how does making a copy of the reference provide protection? // add a message, and log it...