001package com.typesafe.config; 002 003/** 004 * Default config loading strategy. Able to load resource, file or URL. 005 * Behavior may be altered by defining one of VM properties 006 * {@code config.resource}, {@code config.file} or {@code config.url} 007 */ 008public class DefaultConfigLoadingStrategy implements ConfigLoadingStrategy { 009 @Override 010 public Config parseApplicationConfig(ConfigParseOptions parseOptions) { 011 return ConfigFactory.parseApplicationReplacement(parseOptions) 012 .orElseGet(() -> ConfigFactory.parseResourcesAnySyntax("application", parseOptions)); 013 } 014}