@M2tAroundAdvice( pointcut = @M2tPointcut( namePattern = "testJavaAnnAdv*", paramTypeNames = {"String", "String"}, hasVarArgs = true)) public Object paramAspect(ThisJoinPoint jp) { List<?> params = jp.getParameters(); return "pre2 " + jp.proceedWithParams(params) + " post2"; }
@M2tAroundAdvice(pointcut = @M2tPointcut(namePattern = "someFunction")) public Object simpleAspect(ThisJoinPoint jp) { return "pre " + jp.proceedWithParams(jp.getParameters()) + " post"; }