KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > ExecutionCountTestAction


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.webwork;
6
7 import com.opensymphony.xwork.ActionSupport;
8 import org.apache.commons.logging.Log;
9 import org.apache.commons.logging.LogFactory;
10
11
12 /**
13  * ExecutionCountTestAction
14  *
15  * @author Jason Carreira
16  * Created Apr 18, 2003 6:17:40 PM
17  */

18 public class ExecutionCountTestAction extends ActionSupport {
19     //~ Static fields/initializers /////////////////////////////////////////////
20

21     private static final Log LOG = LogFactory.getLog(ExecutionCountTestAction.class);
22
23     //~ Instance fields ////////////////////////////////////////////////////////
24

25     private int executionCount = 0;
26
27     //~ Methods ////////////////////////////////////////////////////////////////
28

29     public int getExecutionCount() {
30         return executionCount;
31     }
32
33     public String JavaDoc execute() throws Exception JavaDoc {
34         executionCount++;
35         LOG.info("executing ExecutionCountTestAction. Current count is " + executionCount);
36
37         return SUCCESS;
38     }
39 }
40
Popular Tags