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.

SampleAspect.java 316B

12345678910
  1. import org.aspectj.lang.JoinPoint;
  2. import org.aspectj.lang.annotation.*;
  3. aspect SampleAspect {
  4. //@Aspect public class SampleAspect {
  5. //@Before("@annotation(logMe)") public void beforeAdvice(JoinPoint thisJoinPoint, LogMe logMe) {
  6. before(LogMe logMe): @annotation(logMe) {
  7. System.out.println(thisJoinPoint);
  8. }
  9. }