/[projects]/WebConfig/src/dk/thoerup/webconfig/ConfigLoader.java
ViewVC logotype

Diff of /WebConfig/src/dk/thoerup/webconfig/ConfigLoader.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2346 by torben, Wed Apr 20 21:20:58 2011 UTC revision 2347 by torben, Mon Feb 23 14:49:28 2015 UTC
# Line 27  abstract public class ConfigLoader { Line 27  abstract public class ConfigLoader {
27    
28                          String value = getValue( propertyName );                          String value = getValue( propertyName );
29                          if (value == null) {                          if (value == null) {
30                                  //TODO: find another exception to throw here                                  if (anno.mandatory()) {
31                                  throw new RuntimeException("Could not find a value to this field: " + field.getName() );                                          //TODO: find another exception to throw here
32                                            throw new RuntimeException("Could not find a value to this field: " + field.getName() );
33                                    } else {
34                                            System.out.println("Could not find a value to this field: " + field.getName() );
35                                            continue;
36                                    }
37                          }                          }
38    
39                          setFieldValue(field,configObject,value);                          setFieldValue(field,configObject,value);

Legend:
Removed from v.2346  
changed lines
  Added in v.2347

  ViewVC Help
Powered by ViewVC 1.1.20