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 |
|
|
public short maxWorkers; |
12 |
|
|
|
13 |
|
|
@ConfigVariable |
14 |
|
|
public String trigger_url; |
15 |
|
|
|
16 |
|
|
/* |
17 |
|
|
* Singleton |
18 |
|
|
*/ |
19 |
|
|
|
20 |
|
|
private static ServiceConfig instance = null; |
21 |
|
|
private ServiceConfig() { |
22 |
|
|
} |
23 |
|
|
|
24 |
|
|
public static ServiceConfig getInstance() { |
25 |
|
|
if (instance == null) { |
26 |
|
|
instance = new ServiceConfig(); |
27 |
|
|
} |
28 |
|
|
|
29 |
|
|
return instance; |
30 |
|
|
} |
31 |
|
|
|
32 |
|
|
|
33 |
|
|
} |