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.
1234567891011121314 |
- import java.lang.Class;
- import org.aspectj.lang.reflect.MethodSignature;
- import org.aspectj.lang.*;
-
- public aspect CodeAspect {
- pointcut getPointcut()
- : execution(public * example.AOPTest.cleanup());
-
- Object around() : getPointcut() {
- System.out.println("ASPECT WORKING");
- //Just call the underlying method
- return proceed();
- }
- }
|