Interface AppSettings

All Known Implementing Classes:
AppSettingsImpl

public interface AppSettings
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends AppSettingsEntity>
    T
    load(Class<T> clazz)
    Loads application settings entity of type T.
    <T extends AppSettingsEntity>
    void
    save(T settingsEntityToSave)
    Saves application settings entity of type T.
  • Method Details

    • load

      <T extends AppSettingsEntity> T load(Class<T> clazz)
      Loads application settings entity of type T. Note, that in default implementation attributes with empty values will be replaced with default values if specified.
      Parameters:
      clazz - class of entity that extends AppSettingsEntity
    • save

      <T extends AppSettingsEntity> void save(T settingsEntityToSave)
      Saves application settings entity of type T. Note, that in default implementation attributes with values equal to default will be overridden with null value.
      Parameters:
      settingsEntityToSave - entity to be saved