KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > tbutils > res > SystemResourceProvider


1 package com.tonbeller.tbutils.res;
2
3 import java.util.Collection JavaDoc;
4
5 /**
6  * looksup keys via System.getProperty()
7  *
8  * @author av
9  */

10 public class SystemResourceProvider implements ResourceProvider {
11
12   public SystemResourceProvider() {
13     super();
14   }
15   public String JavaDoc getString(String JavaDoc key) {
16     return System.getProperty(key);
17   }
18
19   public Collection JavaDoc keySet() {
20     return System.getProperties().keySet();
21   }
22   public void close() {
23   }
24   
25   public void dump(Dumper d) {
26     d.dump(this);
27   }
28   public String JavaDoc getName() {
29     return "System Properties";
30   }
31
32 }
33
Popular Tags