01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.config;
06:
07: import java.util.ArrayList;
08: import java.util.Iterator;
09: import java.util.List;
10:
11: /**
12: * TestConfiguration
13: *
14: * @author Jason Carreira
15: * Created Apr 9, 2003 11:12:54 PM
16: */
17: public class TestConfiguration extends Configuration {
18:
19: /**
20: * Get a named setting.
21: *
22: * @throws IllegalArgumentException if there is no configuration parameter with the given name.
23: */
24: public Object getImpl(String aName) throws IllegalArgumentException {
25: return aName;
26: }
27:
28: /**
29: * List setting names
30: */
31: public Iterator listImpl() {
32: List testList = new ArrayList();
33: testList.add("123");
34: testList.add("testValue");
35:
36: return testList.iterator();
37: }
38: }
|