選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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