Parent Directory | Revision Log
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 |