Class PerformanceMonitorInterceptor

All Implemented Interfaces:
Serializable, Advice, Interceptor, MethodInterceptor

public class PerformanceMonitorInterceptor extends AbstractMonitoringInterceptor
Simple AOP Alliance MethodInterceptor for performance monitoring. This interceptor has no effect on the intercepted method call.

Uses a StopWatch for the actual performance measuring.

Author:
Rod Johnson, Dmitriy Kopylenko, Rob Harrop
See Also:
  • Constructor Details

    • PerformanceMonitorInterceptor

      public PerformanceMonitorInterceptor()
      Create a new PerformanceMonitorInterceptor with a static logger.
    • PerformanceMonitorInterceptor

      public PerformanceMonitorInterceptor(boolean useDynamicLogger)
      Create a new PerformanceMonitorInterceptor with a dynamic or static logger, according to the given flag.
      Parameters:
      useDynamicLogger - whether to use a dynamic logger or a static logger
      See Also:
  • Method Details