RE: Tapestry decorator with marker

2018-09-03 Thread Labhesh Ramchandani
I was able to solve the #b by using receiver's getMethodAnnotation... However; re. my #a : do I still need to put the @Marker(TimeIt.class) on the serviceImpl I am interested in? Would be good to just put it on the method of interest directly? for(Method m: receiver.getInterface().getMethod

RE: Tapestry decorator with marker

2018-09-03 Thread Labhesh Ramchandani
Thanks, Thiago.. I switched to use the "Advisor" solution instead of creating my own decorator... Here's what I have so far: @Advise @TimeIt public static void adviseTimer(MethodAdviceReceiver receiver, Logger log) { MethodAdvice advice = invocation -> { long start = System.curren

Re: Tapestry decorator with marker

2018-09-03 Thread Thiago H. de Paula Figueiredo
On Sun, Sep 2, 2018 at 9:56 PM Labhesh Ramchandani < labhesh.ramchand...@aqr.com> wrote: > Hi, > Hello! > @Decorate > @TimeIt > public static T decorateTimer(Class serviceInterface, T delegate, > String serviceId, Logger logger, > TimerDecorator decorator) { > return deco