Skip to content

Commit

Permalink
Rename properties for additional filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinalig committed Aug 26, 2020
1 parent 2be898f commit c1981d5
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@ public abstract class WSBaseConfig implements SchedulingConfigurer, WebMvcConfig
String keyIdentifier;
@Value("${ws.app.gaen.algorithm:1.2.840.10045.4.3.2}")
String gaenAlgorithm;
@Value("${ws.app.gaen.ioslegacy: true}")
boolean iosLegacy;
@Value("${ws.app.gaen.androidBug: true}")
boolean androidBug;


@Autowired(required = false)
ValidateRequest requestValidator;
Expand Down Expand Up @@ -209,19 +204,19 @@ public InsertManager insertManager() {
return manager;
}
@ConditionalOnProperty(
value="ws.app.gaen.androidBug",
value="ws.app.gaen.insertfilter.android0rpfilter",
havingValue = "true",
matchIfMissing = true)
matchIfMissing = false)
@Bean public OldAndroid0RPFilter oldAndroid0RPFilter(InsertManager manager){
var androidFilter = new OldAndroid0RPFilter();
manager.addFilter(androidFilter);
return androidFilter;
}

@ConditionalOnProperty(
value="ws.app.gaen.ioslegacy",
value="ws.app.gaen.insertfilter.iosrplt144filter",
havingValue = "true",
matchIfMissing = true)
matchIfMissing = false)
@Bean public IOSLegacyProblemRPLT144Filter iosLegacyProblemRPLT144(InsertManager manager){
var iosFilter = new IOSLegacyProblemRPLT144Filter();
manager.addFilter(iosFilter);
Expand Down

0 comments on commit c1981d5

Please sign in to comment.