On Sat, 2004-04-24 at 09:10, Joscha Diehl wrote: > Andrew Stevens 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? > > > > > > > that would force to much work on the developers, because they had to > think: ok i will need it here so all my instances need to be that > generated child, not the superclass i see in my IDE.
Only in the places where they're creating new instances. And if you use a factory class (whose getInstance method is declared as returning the original class but actually returns an instance of the subclass) they won't have to make any changes. Andrew. ------------------------------------------------------- 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/?cpg=12297 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
