Class ApplicationConfigurationPublicationConfig
- java.lang.Object
-
- app.coronawarn.server.services.distribution.assembly.appconfig.ApplicationConfigurationPublicationConfig
-
@Configuration public class ApplicationConfigurationPublicationConfig extends Object
Provides the application configuration needed for the mobile client. Contains all necessary sub-configs, including:- Exposure Configuration
- Risk Score Classification
- App Config, e.g. minimum risk threshold
The application config is fetched from the master-config folder.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MASTER_FILE
The location of the exposure configuration master file.
-
Constructor Summary
Constructors Constructor Description ApplicationConfigurationPublicationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationConfiguration
createMasterConfiguration()
Fetches the master configuration as a ApplicationConfiguration instance.
-
-
-
Field Detail
-
MASTER_FILE
public static final String MASTER_FILE
The location of the exposure configuration master file.- See Also:
- Constant Field Values
-
-
Method Detail
-
createMasterConfiguration
@Bean public ApplicationConfiguration createMasterConfiguration() throws UnableToLoadFileException
Fetches the master configuration as a ApplicationConfiguration instance.- Returns:
- the exposure configuration as ApplicationConfiguration
- Throws:
UnableToLoadFileException
- when the file/transformation did not succeed
-
-