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
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
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
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
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
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
/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
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
?
-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
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
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
/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
: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
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
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
15 matches
Mail list logo