/[projects]/WebConfig/src/dk/thoerup/webconfig/PropertiesConfigLoader.java
ViewVC logotype

Contents of /WebConfig/src/dk/thoerup/webconfig/PropertiesConfigLoader.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1343 - (show annotations) (download)
Wed Apr 20 15:40:27 2011 UTC (13 years, 1 month ago) by torben
File size: 318 byte(s)
Add a class to load config from a properties object
1 package dk.thoerup.webconfig;
2
3 import java.util.Properties;
4
5 public class PropertiesConfigLoader extends ConfigLoader {
6
7 Properties props;
8 public PropertiesConfigLoader(Properties props) {
9 this.props = props;
10 }
11
12 @Override
13 public String getValue(String paramName) {
14 return props.getProperty(paramName);
15 }
16
17 }

  ViewVC Help
Powered by ViewVC 1.1.20