Parent Directory | Revision Log
switch to maven
1 | package dk.daoas.fulddaekning; |
2 | |
3 | import java.util.Properties; |
4 | |
5 | public class SafeProperties extends Properties { |
6 | |
7 | private static final long serialVersionUID = 1L;//Default |
8 | |
9 | public String getSafeProperty(String key) { |
10 | String val = getProperty(key); |
11 | |
12 | if (val == null) { |
13 | throw new RuntimeException( "Property not found: " + key); |
14 | } |
15 | |
16 | return val; |
17 | } |
18 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |