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: 2009-12-27 19:00:13 +0100 (Sun, 27 Dec 2009) $ $Id: UtilTimerStack.java 894087 2009-12-27 18:00:13Z martinc $

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

Method Detail

doProfiling

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

Returns:
profiles Type
Throws:
java.lang.Exception


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