/[projects]/dao/DaoAdresseService/src/main/java/dk/daoas/daoadresseservice/admin/ServiceConfig.java
ViewVC logotype

Contents of /dao/DaoAdresseService/src/main/java/dk/daoas/daoadresseservice/admin/ServiceConfig.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2784 - (show annotations) (download)
Thu Nov 26 12:50:05 2015 UTC (8 years, 5 months ago) by torben
File size: 1029 byte(s)
Hvis der ikke er direkte hit litra så tager vi den første fra husnr/litra sættet
1 package dk.daoas.daoadresseservice.admin;
2
3 import dk.thoerup.circuitbreaker.config.BreakerConfig;
4 import dk.thoerup.webconfig.ConfigVariable;
5
6
7
8 public class ServiceConfig implements BreakerConfig {
9
10 @ConfigVariable
11 public boolean useGoogle;
12
13 @ConfigVariable
14 public boolean useOpenStreetMaps;
15
16 @ConfigVariable(mandatory=false)
17 public boolean useMetaphone = false; //default false
18
19 @ConfigVariable
20 public int osmTimeout;
21
22 @ConfigVariable(mandatory=false, readonly=true)
23 public String googleApiUser;
24
25 @ConfigVariable(mandatory=false, hideValue=true)
26 public String googleApiKey;
27
28 @ConfigVariable
29 public String nominatimBase;
30
31 @ConfigVariable(mandatory=false)
32 public String notifyEmail;
33
34
35 //Styrer om vi må bruge nærmeste litra hvis der ikke var direkte match herpå
36 @ConfigVariable(mandatory=false)
37 public boolean nearestLitra = true;
38
39 @Override
40 public int getTimeout() {
41 return 60000;
42 }
43
44 @Override
45 public int getTreshold() {
46 return 5;
47 }
48
49 }

  ViewVC Help
Powered by ViewVC 1.1.20