KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > test > TestValidatorParser


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.mvc.test;
8
9
10 import com.inversoft.util.typeconverter.TypeConversionException;
11 import com.inversoft.verge.mvc.MVCException;
12 import com.inversoft.verge.mvc.MVCRequest;
13 import com.inversoft.verge.mvc.validator.ValidatorParser;
14 import com.inversoft.verge.util.WebBeanProperty;
15
16
17 /**
18  * <p>
19  * Test validator parser
20  * </p>
21  *
22  * @author Brian Pontarelli
23  * @since 2.0
24  * @version 2.0
25  */

26 public class TestValidatorParser implements ValidatorParser {
27
28     public long called;
29
30     /**
31      */

32     public long getCalled() {
33         return called;
34     }
35
36     /**
37      */

38     public void setCalled(long called) {
39         this.called = called;
40     }
41
42
43     public void preExecute(MVCRequest mvcRequest) throws MVCException {
44     }
45
46     public void execute(MVCRequest mvcRequest) throws MVCException {
47         called = System.currentTimeMillis();
48
49         try {
50             Thread.sleep(10);
51         } catch (Exception JavaDoc e) {
52             assert false : "FATAL ERROR: " + e.toString();
53         }
54     }
55     
56     public void executeHandle(MVCRequest mvcRequest, TypeConversionException tce,
57             Object JavaDoc model, WebBeanProperty wbp)
58     throws MVCException {
59     }
60 }
Popular Tags