An alternative to using println's is to use AspectJ. 

  AspectJ enables the clean modularization of crosscutting concerns such
  as: error checking and handling, synchronization, context-sensitive
  behavior, performance optimizations, monitoring and logging, debugging
  support, and multiple object protocols.

See the AspectJ web site, http://aspectj.org/servlets/AJSite, for more
information. Gregor Kiczales gave a very well received talk at JavaOne
2000 (http://java.sun.com/javaone/javaone2000/pdfs/TS-1505.pdf).

AspectJ works with any Java 1.1 or Java 1.2 platform. (I don't know why
1.3 was not included.) There is also a Windows-specific version.

---Vladimir

P.S. AspectJ was designed and implemented by old-time Lisp hackers, so
it's gotta be great!

Vladimir G. Ivanovic                    http://www.leonora.org/~vladimir
2770 Cowper St.                                         [EMAIL PROTECTED]
Palo Alto, CA 94306-2447                                 +1 650 678 8014


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to