KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > config > TestConfiguration


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

5 package com.opensymphony.webwork.config;
6
7 import java.util.ArrayList JavaDoc;
8 import java.util.Iterator JavaDoc;
9 import java.util.List JavaDoc;
10
11
12 /**
13  * TestConfiguration
14  *
15  * @author Jason Carreira
16  * Created Apr 9, 2003 11:12:54 PM
17  */

18 public class TestConfiguration extends Configuration {
19     //~ Methods ////////////////////////////////////////////////////////////////
20

21     /**
22      * Get a named setting.
23      *
24      * @throws IllegalArgumentException if there is no configuration parameter with the given name.
25      */

26     public Object JavaDoc getImpl(String JavaDoc aName) throws IllegalArgumentException JavaDoc {
27         return aName;
28     }
29
30     /**
31      * List setting names
32      */

33     public Iterator JavaDoc listImpl() {
34         List JavaDoc testList = new ArrayList JavaDoc();
35         testList.add("123");
36         testList.add("testValue");
37
38         return testList.iterator();
39     }
40 }
41
Popular Tags