no message
This commit is contained in:
parent
18ccb3ca0c
commit
18a200f099
|
@ -37,7 +37,6 @@ public class DefaultConfigLoader implements ConfigLoader {
|
|||
private static final ObjectMapper mapper = new ObjectMapper();
|
||||
|
||||
private ExternalUrls externalUrls;
|
||||
private List<String> rdaProperties;
|
||||
private List<Schematic> schematics;
|
||||
private XWPFDocument document;
|
||||
private XWPFDocument datasetDocument;
|
||||
|
@ -67,26 +66,6 @@ public class DefaultConfigLoader implements ConfigLoader {
|
|||
}
|
||||
}
|
||||
|
||||
private void setRdaProperties() {
|
||||
String filePath = environment.getProperty("configuration.rda");
|
||||
logger.info("Loaded also config file: " + filePath);
|
||||
BufferedReader reader;
|
||||
List<String> rdaList = new LinkedList<>();
|
||||
try {
|
||||
reader = new BufferedReader(new InputStreamReader(getStreamFromPath(filePath)));
|
||||
String line = reader.readLine();
|
||||
while (line != null) {
|
||||
rdaList.add(line);
|
||||
line = reader.readLine();
|
||||
}
|
||||
reader.close();
|
||||
} catch (IOException | NullPointerException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
}
|
||||
|
||||
rdaProperties = rdaList;
|
||||
}
|
||||
|
||||
private void setSchematics() {
|
||||
String filePath = environment.getProperty("configuration.schematics");
|
||||
logger.info("Loaded also config file: " + filePath);
|
||||
|
@ -187,14 +166,6 @@ public class DefaultConfigLoader implements ConfigLoader {
|
|||
return externalUrls;
|
||||
}
|
||||
|
||||
public List<String> getRdaProperties() {
|
||||
if (rdaProperties == null) {
|
||||
rdaProperties = new ArrayList<>();
|
||||
this.setRdaProperties();
|
||||
}
|
||||
return rdaProperties;
|
||||
}
|
||||
|
||||
public List<Schematic> getSchematics() {
|
||||
if (schematics == null) {
|
||||
schematics = new ArrayList<>();
|
||||
|
|
Loading…
Reference in New Issue