Guest User

Untitled

a guest
Oct 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. @Around("execution(* *(..)) && @annotation(Te)")
  2. public Object setupParam(ProceedingJoinPoint pjp) throws Throwable {
  3. Object[] args = pjp.getArgs();
  4. MethodSignature signature = (MethodSignature) pjp.getSignature();
  5. Method method = signature.getMethod();
  6. Te myAnnotation = method.getAnnotation(Te.class);
  7. if (args != null)
  8. args[0] = (int) args[0] * myAnnotation.w();
  9. return pjp.proceed(args);
  10. }
Add Comment
Please, Sign In to add comment