Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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. }