ACS-3476: Re-adding a getAdditional method

It was needed for proper processing of ConfigurationProperties annotation and allowing for TRANSFORMER_ROUTES_ADDITIONAL_<engineName> for backwards compatibility.
Spring mechanism takes the "transform.routes" gets the "additional" as a setting and adds to map ("ai", configFile).
Without this get, the spring mechanism can't add this property due to no access to additional variable
This commit is contained in:
mstrankowski 2022-09-23 18:22:04 +02:00
parent 4805ccee31
commit dfa9f15f72

View File

@ -50,6 +50,11 @@ public class TransformConfigFilesHistoric
// environment variables like TRANSFORMER_ROUTES_ADDITIONAL_<engineName>.
private final Map<String, String> additional = new HashMap<>();
//Used by ConfigurationProperties annotation
public Map<String, String> getAdditional() {
return additional;
}
private String TRANSFORMER_ROUTES_FROM_CLASSPATH = "transformer-pipelines.json";
@Value("${transformer-routes-path}")