You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Arguments.aj 593B

123456789101112131415161718192021
  1. package com.test;
  2. import org.aspectj.lang.ProceedingJoinPoint;
  3. import org.aspectj.lang.annotation.*;
  4. import org.aspectj.lang.annotation.Pointcut;
  5. public aspect Arguments {
  6. // @Pointcut("execution(@Test * *(..)) && @annotation(test) && @within( test1) && this(test2)")
  7. // public void unit(Test2 test2, Test1 test1, Test test) {
  8. // }
  9. @Around("execution(@Test * *(..)) && @annotation(test) && @within( test1 ) && this(test2)")
  10. public void test( ProceedingJoinPoint pjp,
  11. Test test2,
  12. Test1 test1,
  13. Test test){
  14. }
  15. }