1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.dbforms.config;
25
26 import java.util.HashMap;
27 import java.util.Map;
28
29
30
31 /***
32 * <p>
33 * This class holds XML config data defining interceptors for tables. compare
34 * org.dbforms.event.DbEventInterceptor
35 * </p>
36 *
37 * @author Joachim Peer
38 */
39 public class Interceptor implements java.io.Serializable {
40
41 private Map params;
42 private String className;
43
44 /***
45 * Creates a new Interceptor object.
46 */
47 public Interceptor() {
48 params = new HashMap();
49 }
50
51 /***
52 * sets the name of the interceptor class to be invoked during runtime
53 *
54 * @param className - name of the Interceptor class
55 */
56 public void setClassName(String className) {
57 this.className = className;
58 }
59
60
61 /***
62 * returns the name of the interceptor class
63 *
64 * @return the name of the interceptor class
65 */
66 public String getClassName() {
67 return className;
68 }
69
70
71 /***
72 * DOCUMENT ME!
73 *
74 * @return DOCUMENT ME!
75 */
76 public Map getParameterMap() {
77 return params;
78 }
79
80
81 /***
82 * DOCUMENT ME!
83 *
84 * @param name DOCUMENT ME!
85 * @param value DOCUMENT ME!
86 */
87 public void addParam(String name,
88 String value) {
89 params.put(name, value);
90 }
91 }