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
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
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