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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2199 - (hide annotations) (download)
Thu Sep 11 08:13:32 2014 UTC (9 years, 8 months ago) by torben
File size: 360 byte(s)
Silence serialVersionUID warning
1 torben 2157 package dk.daoas.fulddaekning;
2    
3     import java.util.Properties;
4    
5     public class SafeProperties extends Properties {
6    
7 torben 2199 private static final long serialVersionUID = 1L;//Default
8    
9 torben 2157 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