FileDocCategorySizeDatePackage
ProfilingInterceptor.javaAPI DocExample585Mon Apr 25 07:42:00 BST 2005com.springbook.interceptors

ProfilingInterceptor

public class ProfilingInterceptor extends Object implements MethodInterceptor

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Objectinvoke(org.aopalliance.intercept.MethodInvocation methodInvocation)

      long start = System.currentTimeMillis();
      Object results = methodInvocation.proceed();
      long end = System.currentTimeMillis();
      System.out.println("Method: " + methodInvocation.getMethod().getName() +
            " took " + (end - start) + " ms.");
      return results;