| 1 |
|
package com.atlassian.xwork.results; |
| 2 |
|
|
| 3 |
|
import com.opensymphony.webwork.dispatcher.VelocityResult; |
| 4 |
|
import com.opensymphony.xwork.ActionInvocation; |
| 5 |
|
import com.opensymphony.xwork.util.OgnlValueStack; |
| 6 |
|
import com.atlassian.util.profiling.UtilTimerStack; |
| 7 |
|
import org.apache.velocity.Template; |
| 8 |
|
import org.apache.velocity.app.VelocityEngine; |
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 2 |
Complexity Density: 0.25 |
|
| 13 |
|
public class ProfiledVelocityResult extends VelocityResult |
| 14 |
|
{ |
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 15 |
0
|
public void doExecute(String finalLocation, ActionInvocation invocation) throws Exception... |
| 16 |
|
{ |
| 17 |
0
|
UtilTimerStack.push("XW View: doExecute(" + finalLocation + ")"); |
| 18 |
|
|
| 19 |
0
|
try |
| 20 |
|
{ |
| 21 |
0
|
super.doExecute(finalLocation, invocation); |
| 22 |
|
} |
| 23 |
|
finally |
| 24 |
|
{ |
| 25 |
0
|
UtilTimerStack.pop("XW View: doExecute(" + finalLocation + ")"); |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 29 |
0
|
protected Template getTemplate(OgnlValueStack stack, VelocityEngine velocity, ActionInvocation invocation, String location) throws Exception... |
| 30 |
|
{ |
| 31 |
0
|
UtilTimerStack.push("XW View: getTemplate(" + location + ")"); |
| 32 |
0
|
try |
| 33 |
|
{ |
| 34 |
0
|
return super.getTemplate(stack, velocity, invocation, location); |
| 35 |
|
} |
| 36 |
|
finally |
| 37 |
|
{ |
| 38 |
0
|
UtilTimerStack.pop("XW View: getTemplate(" + location + ")"); |
| 39 |
|
} |
| 40 |
|
} |
| 41 |
|
} |