/[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 3126 - (show annotations) (download)
Wed Oct 19 09:53:49 2016 UTC (7 years, 6 months ago) by torben
File size: 1122 byte(s)
Make use of Levenshtein configurable
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(mandatory=false)
20 public boolean useLevenshtein = true; //default true
21
22 @ConfigVariable
23 public int osmTimeout;
24
25 @ConfigVariable(mandatory=false, readonly=true)
26 public String googleApiUser;
27
28 @ConfigVariable(mandatory=false, hideValue=true)
29 public String googleApiKey;
30
31 @ConfigVariable
32 public String nominatimBase;
33
34 @ConfigVariable(mandatory=false)
35 public String notifyEmail;
36
37
38 //Styrer om vi må bruge nærmeste litra hvis der ikke var direkte match herpå
39 @ConfigVariable(mandatory=false)
40 public boolean nearestLitra = true;
41
42 @Override
43 public int getTimeout() {
44 return 60000;
45 }
46
47 @Override
48 public int getTreshold() {
49 return 5;
50 }
51
52 }

  ViewVC Help
Powered by ViewVC 1.1.20