Class JsonConfigurationProvider
-
- All Implemented Interfaces:
-
com.sap.cloud.mobile.foundation.configurationprovider.ConfigurationProvider
public class JsonConfigurationProvider implements ConfigurationProvider
One of the default ConfigurationProviders, it obtains configuration data from JSON data supplied as user input.
Under normal usage, it would not be instantiated directly, but consumed through the ConfigurationLoader.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
JSON_DATA
-
Constructor Summary
Constructors Constructor Description JsonConfigurationProvider()
-
Method Summary
Modifier and Type Method Description ProviderIdentifier
getProviderIdentifier()
Returns the ProviderIdentifier for this Provider. ProviderInputs
getExpectedInput()
Reports what input(s) are required for operation. ProviderConfiguration
provideConfiguration(@NonNull() ProviderInputs input)
Used by the loader, normally not accessed directly. -
-
Method Detail
-
getProviderIdentifier
@NonNull() ProviderIdentifier getProviderIdentifier()
Returns the ProviderIdentifier for this Provider.
- Returns:
-
getExpectedInput
@NonNull() ProviderInputs getExpectedInput()
Reports what input(s) are required for operation. The value for this class is ProviderInputs containing the key "json_data" and the value for the key.
- Returns:
-
provideConfiguration
@NonNull() ProviderConfiguration provideConfiguration(@NonNull() ProviderInputs input)
Used by the loader, normally not accessed directly.
- Parameters:
input
- A ProviderInputs object containing user input, if any, for this provider.- Returns:
A ProviderConfiguration object containing the results of this operation.
-
-
-
-