Example #1
0
 /**
  * set file names of property files to read
  *
  * @param fileNames one or more property file names
  * @return the instance of ConfigBuilder
  */
 public ConfigBuilder<T> withPropertiesFiles(String... fileNames) {
   propertyLoader.withBaseNames(Arrays.asList(fileNames));
   return this;
 }
Example #2
0
 /**
  * Configures the Config Builder to load given properties files instead of those specified in the
  * config class.
  *
  * @param baseNames
  * @return the instance of ConfigBuilder
  */
 public ConfigBuilder<T> overridePropertiesFiles(List<String> baseNames) {
   propertyLoader.withBaseNames(baseNames);
   return this;
 }