Tapestry decorator with marker

2018-09-02 Thread Labhesh Ramchandani
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

RE: Tapestry decorator with marker

2018-09-02 Thread Labhesh Ramchandani
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: '

RE: Tapestry decorator with marker

2018-09-03 Thread Labhesh Ramchandani
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

RE: Tapestry decorator with marker

2018-09-03 Thread Labhesh Ramchandani
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

RE: Tapestry decorator with marker

2018-09-04 Thread Labhesh Ramchandani
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