예제 #1
0
 /**
  * Calls base constructor feeding defaults from Map and IPropertyLookup params
  *
  * @param propfile File containing property data
  * @param defaults Map of default properties
  * @param defaultsLookup IPropertyLookup of default properties
  */
 private PropertyLookup(
     final File propfile, final Map defaults, final IPropertyLookup defaultsLookup) {
   this(fetchProperties(propfile), defaults);
   properties.putAll(difference(defaultsLookup.getPropertiesMap()));
 }
예제 #2
0
 /**
  * Calls base constructor with data from IPropertyLookup paramater as defaults. Defaults data is
  * read via the {@link IPropertyLookup#getPropertiesMap()} method.
  *
  * @param props Property set
  * @param defaultsLookup IPropertyLookup of default properties
  */
 private PropertyLookup(final Properties props, final IPropertyLookup defaultsLookup) {
   this(props, defaultsLookup.getPropertiesMap());
 }