yeah, the docs say that it adds you code to the end of it. I added a ticket:
https://issues.apache.org/jira/browse/TAPESTRY-1615 On Fri, 2007-06-29 at 09:30 -0700, Howard Lewis Ship wrote: > You can extend an existing method, but off the top of my head, I can't > remember if that automatically invokes the existing method before > executing the new code. I think it does, which would defeat what you > are trying to do. > > On 6/29/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > You are correct, ClassTransformation needs the ability to rename a method. > > > > On 6/29/07, Dan Adams <[EMAIL PROTECTED]> wrote: > > > Okay, so I'm creating a @Once annotation that when applied to a method > > > like so: > > > > > > @Once > > > public List<Foos> getFoos() { > > > // do some expensive operation like reading foos from the db > > > } > > > > > > you can call getFoos() as much as you want and it will only actually > > > execute once, allowing you to reference foos many times in your template > > > (or elsewhere) without having to worry about doing expensive operations > > > multiple times or having to cache a value manually. > > > > > > I had this working just fine in T4 because you could call the superclass > > > method but since this is transforming the class I can't call > > > super.getFoos(). ClassTransformation doesn't seem to have any methods > > > for renaming a method or replacing any calls to it. Any suggestions? > > > > > > -- > > > Dan Adams > > > Senior Software Engineer > > > Interactive Factory > > > 617.235.5857 > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Howard M. Lewis Ship > > TWD Consulting, Inc. > > Independent J2EE / Open-Source Java Consultant > > Creator and PMC Chair, Apache Tapestry > > Creator, Apache HiveMind > > > > Professional Tapestry training, mentoring, support > > and project work. http://howardlewisship.com > > > > -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]