Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Around("execution(* *(..)) && @annotation(Te)")
- public Object setupParam(ProceedingJoinPoint pjp) throws Throwable {
- Object[] args = pjp.getArgs();
- MethodSignature signature = (MethodSignature) pjp.getSignature();
- Method method = signature.getMethod();
- Te myAnnotation = method.getAnnotation(Te.class);
- if (args != null)
- args[0] = (int) args[0] * myAnnotation.w();
- return pjp.proceed(args);
- }
Add Comment
Please, Sign In to add comment