com.opensymphony.xwork2.util.profiling
Interface UtilTimerStack.ProfilingBlock<T>

Type Parameters:
T -
Enclosing class:
UtilTimerStack

public static interface UtilTimerStack.ProfilingBlock<T>

A callback interface where code subjected to profile is to be executed. This eliminates the need of coding boiler code that does pushing (UtilTimerBean.push(...)) and poping (UtilTimerBean.pop(...)) in a try ... finally ... block.

Version:
$Date: 2011-05-03 19:53:55 +0200 (Tue, 03 May 2011) $ $Id: UtilTimerStack.java 1099157 2011-05-03 17:53:55Z jogep $

Method Summary
 T doProfiling()
          Method that execute the code subjected to profiling.
 

Method Detail

doProfiling

T doProfiling()
              throws Exception
Method that execute the code subjected to profiling.

Returns:
profiles Type
Throws:
Exception


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.