Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
1234567891011121314151617181920 |
- abstract aspect StaticAdviceOnAbstract {
- abstract pointcut i();
-
- pointcut j():
- i()
- && !this(StaticAdviceOnAbstract)
- && call(new(..)) ;
- }
-
- aspect Concrete {
- // static advice indirectly on an abstract pointcut
- after() returning(Object o): StaticAdviceOnAbstract.j() {
- System.out.println("we have"+o);
- }
-
- // a simple case of directly on abstract pointcut
- after() returning(Object o): StaticAdviceOnAbstract.i() {
- System.out.println("we have"+o);
- }
- }
|