You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pr121616.java 384B

12345678910111213141516
  1. import org.aspectj.lang.annotation.Aspect;
  2. import org.aspectj.lang.annotation.Before;
  3. class Main {
  4. public static void main(String[] args) {
  5. System.out.println("Main");
  6. }
  7. }
  8. @Aspect
  9. class MainLogger {
  10. @Before("execution(* main(..))")
  11. public void log(JoinPoint thisJoinPoint) {
  12. System.out.println("Before " + thisJoinPoint);
  13. }
  14. }