Hi,
I've written a simple decorator as follows (in my app module):
@Decorate
@TimeIt
public static T decorateTimer(Class serviceInterface, T delegate,
String serviceId, Logger logger,
TimerDecorator decorator) {
return decorator.build(serviceInterface, delegate, serviceId, l
Minor correction:
I meant to type:
@Marker(TimeIt.class)
public class ASpecificManagerImpl implements ASpecificManager {...}
in my email.. (and not Timer.class...)
(My question is still the same...thanks)
From: Labhesh Ramchandani
Sent: Sunday, September 02, 2018 8:56 PM
To: '
applied to
Can you please suggest a better solution?
Thanks again
-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
Sent: Monday, September 03, 2018 3:37 PM
To: Tapestry users
Subject: Re: Tapestry decorator with marker
On Sun, Sep 2, 2018 at 9:56 PM Labhe
rface().getMethods()) {
if (receiver.getMethodAnnotation(m, TimeIt.class) != null) {
receiver.adviseMethod(m, advice);
}
}
Thanks
-Original Message-
From: Labhesh Ramchandani
Sent: Monday, September 03, 2018 9:13 PM
To: 'Tapestry users'
Subject: RE: Tapestry decora
12 PM Labhesh Ramchandani <
labhesh.ramchand...@aqr.com> wrote:
> Thanks, Thiago.. I switched to use the "Advisor" solution instead of
> creating my own decorator...
>
You're welcome!
> Here's what I have so far:
>
> @Advise
> @TimeIt
> publi