Interface AppSettingsTools

All Known Implementing Classes:
AppSettingsToolsImpl

public interface AppSettingsTools
  • Method Details

    • loadAppSettingsEntityFromDataStore

      <T extends AppSettingsEntity> T loadAppSettingsEntityFromDataStore(Class<T> clazz)
      Loads application settings entity by it clazz from data store.
      Parameters:
      clazz - class that extends AppSettingsEntity
      Returns:
      application settings entity
    • getPropertyValue

      @Nullable Object getPropertyValue(Class<? extends AppSettingsEntity> clazz, String propertyName)
      Returns actual value for provided propertyName and clazz.
      Parameters:
      clazz - class that extends AppSettingsEntity
      propertyName - property name for which value should be calculated
      Returns:
      actual value of provided propertyName
    • getDefaultPropertyValue

      @Nullable Object getDefaultPropertyValue(Class<? extends AppSettingsEntity> clazz, String propertyName)
      Returns default value for provided propertyName and clazz based on value of one of the AppSettingsDefault annotation.
      Parameters:
      clazz - class that extends AppSettingsEntity
      propertyName - property name for which default value should be calculated
      Returns:
      value by default of provided propertyName
    • getPropertyNames

      <T extends AppSettingsEntity> List<String> getPropertyNames(Class<T> clazz)
      Returns all non-system properties' names for given clazz.
      Parameters:
      clazz - class that extends AppSettingsEntity
      Returns:
      non-system properties' names for given clazz