@ AroundInvoke public Object monitor ( InvocationContext context ) throws Exception { if ( isMonitored ( context ) ) { String simonName = getSimonName ( context ) ; try ( Split ignored = SimonManager . getStopwatch ( simonName ) . start ( ) ) { return context . proceed ( ) ; } } else { return context . proceed ( ) ; } }
Around invoke method that measures the split for one method invocation .