1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts2.config;
19
20 import java.util.ArrayList;
21 import java.util.Iterator;
22 import java.util.List;
23
24
25 /***
26 * TestSettings
27 *
28 */
29 public class TestSettings extends Settings {
30
31 /***
32 * Get a named setting.
33 *
34 * @throws IllegalArgumentException if there is no settings parameter with the given name.
35 */
36 public String getImpl(String aName) throws IllegalArgumentException {
37 return aName;
38 }
39
40 /***
41 * List setting names
42 */
43 public Iterator listImpl() {
44 List testList = new ArrayList();
45 testList.add("123");
46 testList.add("testValue");
47
48 return testList.iterator();
49 }
50 }