Class FileConfigurationProvider

  • All Implemented Interfaces:
    com.sap.cloud.mobile.foundation.configurationprovider.ConfigurationProvider

    
    public class FileConfigurationProvider
     implements ConfigurationProvider
                        

    One of the default ConfigurationProviders, it obtains JSON configuration data from the application\u0027s resource file.

    Under normal usage, the FILE_CONFIGURATION_PROVIDER would not be instantiated directly, but consumed through the Loader.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      FileConfigurationProvider(Context context) Reads configuration data from the Default file reference.
      FileConfigurationProvider(Context context, String filename) Reads configuration data from a custom configuration file.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • FileConfigurationProvider

        FileConfigurationProvider(Context context)
        Reads configuration data from the Default file reference.
        Parameters:
        context - A context, providing access to the application specific resources; it should contain the Configuration File
      • FileConfigurationProvider

        FileConfigurationProvider(Context context, String filename)
        Reads configuration data from a custom configuration file.
        Parameters:
        context - A context, providing access to the resources containing the custom Configuration File
        filename - The file name of the custom Configuration File