Re: Help in writing a custom annotation

2006-05-26 Thread Jesse Kuhnert
Sure, the EnhancementOperation stuff isn't always immediately easy to grok. This particular class generically extends any existing renderComponent method (if it exists), adding in logic to do other thingsYou could use the same approach to do what you want. There's a lot going on in there

Re: Help in writing a custom annotation

2006-05-26 Thread Dan Adams
Thanks for the help Jesse. Actually, soon after I sent the last email I realized that (I've been working way too much). Thanks for the help though. I really appreciate it. My tests just passed so I'm going to go commit now. :) On Fri, 2006-05-26 at 16:41 -0400, Jesse Kuhnert wrote: Sure, the

RE: Help in writing a custom annotation

2006-05-25 Thread James Carman
I'd look at the one that injects messages, or beans, or even the one that I wrote for autowiring (available in SVN on the 4.1 branch). -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 10:44 PM To: Tapestry users Subject: Help in writing a custom

RE: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
for autowiring (available in SVN on the 4.1 branch). -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 10:44 PM To: Tapestry users Subject: Help in writing a custom annotation I want to write an annotation that will intercept a method and add

RE: Help in writing a custom annotation

2006-05-25 Thread James Carman
Have you looked into AspectJ? -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:00 AM To: Tapestry users Subject: RE: Help in writing a custom annotation Okay, my annotation is called @Once and if put on accessor will make sure that the method

Re: Help in writing a custom annotation

2006-05-25 Thread Jesse Kuhnert
the one that I wrote for autowiring (available in SVN on the 4.1 branch). -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 10:44 PM To: Tapestry users Subject: Help in writing a custom annotation I want to write an annotation

Re: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
/25/06, James Carman [EMAIL PROTECTED] wrote: Have you looked into AspectJ? -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:00 AM To: Tapestry users Subject: RE: Help in writing a custom annotation Okay, my annotation is called

RE: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:00 AM To: Tapestry users Subject: RE: Help in writing a custom annotation Okay, my annotation is called @Once and if put on accessor will make sure that the method is only executed once and then the return

Re: Help in writing a custom annotation

2006-05-25 Thread Jesse Kuhnert
? -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:00 AM To: Tapestry users Subject: RE: Help in writing a custom annotation Okay, my annotation is called @Once and if put on accessor will make sure that the method is only executed once

RE: Help in writing a custom annotation

2006-05-25 Thread James Carman
into AspectJ? -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:00 AM To: Tapestry users Subject: RE: Help in writing a custom annotation Okay, my annotation is called @Once and if put on accessor will make sure that the method is only executed

RE: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
environment. But, this is a perfect case for AspectJ, IMHO. -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:39 AM To: Tapestry users Subject: RE: Help in writing a custom annotation I thought about using it but I thought that putting

Re: Help in writing a custom annotation

2006-05-25 Thread Jesse Kuhnert
/25/06, James Carman [EMAIL PROTECTED] wrote: Have you looked into AspectJ? -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:00 AM To: Tapestry users Subject: RE: Help in writing a custom annotation

Re: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
:00 AM To: Tapestry users Subject: RE: Help in writing a custom annotation Okay, my annotation is called @Once and if put on accessor will make sure that the method is only executed once and then the return value is cached. Any further calls

Re: Help in writing a custom annotation

2006-05-25 Thread Jesse Kuhnert
AM To: Tapestry users Subject: RE: Help in writing a custom annotation Okay, my annotation is called @Once and if put on accessor will make sure that the method is only executed once and then the return value is cached. Any further calls

Help in writing a custom annotation

2006-05-24 Thread Dan Adams
I want to write an annotation that will intercept a method and add a property to the class. I've started digging around in some of the annotation sources but it's going pretty slow. Can someone point me at the right place to look for where to start? -- Dan Adams Software Engineer Interactive