Class ConfigManager


  • @Singleton
    public class ConfigManager
    extends Object
    • Method Detail

      • switchProfile

        public void switchProfile​(ConfigProfile newProfile)
      • getRSProfileKey

        public String getRSProfileKey()
      • toggleSync

        public void toggleSync​(ConfigProfile profile,
                               boolean sync)
      • load

        public void load()
      • getConfig

        public <T extends Config> T getConfig​(Class<T> clazz)
      • getConfigurationKeys

        public List<String> getConfigurationKeys​(String prefix)
      • getRSProfileConfiguration

        public String getRSProfileConfiguration​(String groupName,
                                                String key)
      • getConfiguration

        public <T> T getConfiguration​(String groupName,
                                      String key,
                                      Type clazz)
      • getRSProfileConfiguration

        public <T> T getRSProfileConfiguration​(String groupName,
                                               String key,
                                               Type clazz)
      • getConfiguration

        public <T> T getConfiguration​(String groupName,
                                      String profile,
                                      String key,
                                      Type type)
      • setConfiguration

        public void setConfiguration​(String groupName,
                                     String profile,
                                     String key,
                                     @NonNull
                                     @NonNull String value)
      • setConfiguration

        public void setConfiguration​(String groupName,
                                     String key,
                                     String value)
      • setConfiguration

        public <T> void setConfiguration​(String groupName,
                                         String profile,
                                         String key,
                                         T value)
      • setConfiguration

        public <T> void setConfiguration​(String groupName,
                                         String key,
                                         T value)
      • setRSProfileConfiguration

        public <T> void setRSProfileConfiguration​(String groupName,
                                                  String key,
                                                  T value)
      • unsetConfiguration

        public void unsetConfiguration​(String groupName,
                                       String profile,
                                       String key)
      • unsetConfiguration

        public void unsetConfiguration​(String groupName,
                                       String key)
      • unsetRSProfileConfiguration

        public void unsetRSProfileConfiguration​(String groupName,
                                                String key)
      • setDefaultConfiguration

        public <T extends Config> void setDefaultConfiguration​(T proxy,
                                                               boolean override)
        Initialize the configuration from the default settings
        Parameters:
        proxy - proxy instance implementing Config
      • sendConfig

        public void sendConfig()