Class ConfigManager


  • @Singleton
    public class ConfigManager
    extends Object
    • Constructor Detail

      • ConfigManager

        @Inject
        public ConfigManager​(@Named("config")
                             File config,
                             ScheduledExecutorService scheduledExecutorService,
                             EventBus eventBus,
                             okhttp3.OkHttpClient okHttpClient,
                             @Nullable
                             net.runelite.api.Client client)
    • Method Detail

      • switchSession

        public final void switchSession​(AccountSession session)
      • 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,
                                      Class<T> clazz)
      • getRSProfileConfiguration

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

        public <T> T getConfiguration​(String groupName,
                                      String profile,
                                      String key,
                                      Class<T> clazz)
      • setConfiguration

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

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

        public void setRSProfileConfiguration​(String groupName,
                                              String key,
                                              Object value)
      • unsetConfiguration

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

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

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

        public void setDefaultConfiguration​(Object proxy,
                                            boolean override)
        Initialize the configuration from the default settings
        Parameters:
        proxy -