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.
12345678910111213141516171819 |
- package mypackage;
-
- public aspect MyAspect {
-
- pointcut executeMethod(): within(TestClass) && execution(* *(..));
-
- before(): executeMethod() {
- System.out.println("Enter "+thisJoinPointStaticPart);
- }
- after(): executeMethod() {
- System.out.println("Leave "+thisJoinPointStaticPart);
- }
- }
-
- class TestClass {
-
- public static void main(String[] args) { }
-
- }
|