This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
You can add a public getter method that allows access to the boolean variables from outside the object.
Or you can add a callback into some other code that handles it.
Joined: Nov 23, 2010
Could do that, public getter.
But, what is this, it removes itself(as far as I can see) in last line, how can I read it then ?
EDIT: hmm, or tihs is realy in its essence olny example and I shoud move all que.removeWatcher out of this class, or something.
Joined: Mar 22, 2005
You should definitely customize the class to suit your needs.
That line simply removes that watcher object from the mail queue - it does not otherwise alter the object, so you can still use it any way you like (assuming that you have stored a reference to it somewhere, obviously).
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com