1 |
torben |
2878 |
package dk.daoas.adressevedligehold; |
2 |
|
|
|
3 |
|
|
import dk.thoerup.webconfig.ConfigVariable; |
4 |
|
|
|
5 |
|
|
public class ServiceConfig { |
6 |
|
|
|
7 |
|
|
@ConfigVariable |
8 |
|
|
public boolean useOsrm; |
9 |
|
|
|
10 |
|
|
@ConfigVariable |
11 |
torben |
2889 |
public String osrmHost; |
12 |
|
|
|
13 |
|
|
@ConfigVariable |
14 |
torben |
2878 |
public short maxWorkers; |
15 |
|
|
|
16 |
|
|
@ConfigVariable |
17 |
|
|
public String trigger_url; |
18 |
|
|
|
19 |
|
|
/* |
20 |
|
|
* Singleton |
21 |
|
|
*/ |
22 |
|
|
|
23 |
|
|
private static ServiceConfig instance = null; |
24 |
|
|
private ServiceConfig() { |
25 |
|
|
} |
26 |
|
|
|
27 |
|
|
public static ServiceConfig getInstance() { |
28 |
|
|
if (instance == null) { |
29 |
|
|
instance = new ServiceConfig(); |
30 |
|
|
} |
31 |
|
|
|
32 |
|
|
return instance; |
33 |
|
|
} |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
} |