Andrew Stevens wrote: > On Fri, 2004-04-23 at 15:06, Joscha Diehl wrote: >> What my module/xdcolet-tag will be for is: copy the class as is, and >> on the "tagged" methods wrap the method body in a try/finally block. >> It will be for tracing purposes. Is xdoclet the tool for this at all? > > Why not just write/generate a class that extends it, and in > the subclass wrap a call to super(...) with your try/finally block?
Another option would be to use one of the AOP packages (e.g AspectJ) to build an interceptor (or munge the bytecode) to do what you want. This is in effect what the EJBC conpiler does to generate stubs and skeletons for your beans. David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg297 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
