Commit efcdeaf6 authored by Matija Obreza's avatar Matija Obreza
Browse files

Configure geotools to use the data.folder.path

parent 7ccd1479
...@@ -61,6 +61,9 @@ public class ApplicationConfig { ...@@ -61,6 +61,9 @@ public class ApplicationConfig {
@Value("${taxonomy.data.path}") @Value("${taxonomy.data.path}")
public String taxonomyDataPath; public String taxonomyDataPath;
@Value("${data.folder.path}")
public String dataFolderPath;
/** /**
* Process service. * Process service.
* *
...@@ -104,6 +107,7 @@ public class ApplicationConfig { ...@@ -104,6 +107,7 @@ public class ApplicationConfig {
@Bean @Bean
public LandOrSeaService landOrSeaService() throws MalformedURLException, IOException { public LandOrSeaService landOrSeaService() throws MalformedURLException, IOException {
LandOrSeaServiceImpl s = new LandOrSeaServiceImpl(); LandOrSeaServiceImpl s = new LandOrSeaServiceImpl();
s.setDataFolderPath(dataFolderPath);
s.afterPropertiesSet(); s.afterPropertiesSet();
return s; return s;
} }
...@@ -111,6 +115,7 @@ public class ApplicationConfig { ...@@ -111,6 +115,7 @@ public class ApplicationConfig {
@Bean @Bean
public CountryOfOriginService countryOfOriginService() throws MalformedURLException, IOException { public CountryOfOriginService countryOfOriginService() throws MalformedURLException, IOException {
CountryOfOriginServiceImpl s = new CountryOfOriginServiceImpl(); CountryOfOriginServiceImpl s = new CountryOfOriginServiceImpl();
s.setDataFolderPath(dataFolderPath);
s.afterPropertiesSet(); s.afterPropertiesSet();
return s; return s;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment