aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1921/github_279/HelloInterceptor.java
blob: 5eaaf8beb733ad72f2cd02cb7377e71354c5cf5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class HelloInterceptor {
  @Around("execution(public String Greeter.hello())")
  public Object interceptHello(ProceedingJoinPoint pjp) throws Throwable {
    Application.ASPECT_COUNT.incrementAndGet();
    return pjp.proceed();
  }
}