Revision 3ca53aa1
Added by Andreas Müller over 2 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/config/ApplicationConfiguration.java | ||
---|---|---|
23 | 23 |
/** |
24 | 24 |
* @author a.kohlbecker |
25 | 25 |
* @since Feb 16, 2018 |
26 |
* |
|
27 | 26 |
*/ |
28 | 27 |
@Component |
29 | 28 |
public class ApplicationConfiguration { |
... | ... | |
41 | 40 |
public static final String TEST_MODE = "testmode"; |
42 | 41 |
|
43 | 42 |
@Autowired |
44 |
Environment env; |
|
43 |
private Environment env;
|
|
45 | 44 |
|
46 | 45 |
@Autowired |
47 |
ConfigFileUtil configFileUtil; |
|
46 |
private ConfigFileUtil configFileUtil;
|
|
48 | 47 |
|
49 |
Map<String, Properties> configurations = new HashMap<>(); |
|
48 |
private Map<String, Properties> configurations = new HashMap<>();
|
|
50 | 49 |
|
51 | 50 |
public String getProperty(ApplicationConfigurationFile configFile, String key){ |
52 | 51 |
Properties props = loadPropertiesFile(configFile); |
Also available in: Unified diff
cleanup