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