/[projects]/dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/SafeProperties.java
ViewVC logotype

Contents of /dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/SafeProperties.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2157 - (show annotations) (download)
Sat May 10 08:24:55 2014 UTC (10 years ago) by torben
File size: 300 byte(s)
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