Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.46 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. which jars are needed for following code snippet?
  2. import org.aspectj.lang.annotation.Aspect;
  3. import org.aspectj.lang.annotation.Around;
  4. import org.aspectj.lang.ProceedingJoinPoint;
  5.  
  6. @Aspect
  7. public class AroundExample {
  8.  
  9.   @Around("com.xyz.myapp.SystemArchitecture.businessService()")
  10.   public Object doBasicProfiling(ProceedingJoinPoint pjp) throws Throwable {
  11.     // start stopwatch
  12.     Object retVal = pjp.proceed();
  13.     // stop stopwatch
  14.     return retVal;
  15.   }
  16. }