This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
Below is part of my coding, i do to remove the dispatcher by using the code during the "Hello" method. But now, i would like to remove the dispatcher during the "anotherMethod" method after the "anotherMethod" have been executed. Can it be done? How can i make it? Can anyone help me? Thanks.
Thanks for your help! Ning
posted 10 years ago
Yes, it can be done. Just store a reference to the dispatcher as an instance member of your class: