Interface ConfigurationAPI

All Known Implementing Classes:
Stargate

public interface ConfigurationAPI
An API for interacting with Stargate's configuration file
Author:
Kristian Knarvik (EpicKnarvik97)
  • Method Details

    • setConfigurationOptionValue

      void setConfigurationOptionValue(ConfigurationOption configurationOption, Object newValue)
      Sets the value of a configuration option
      Parameters:
      configurationOption -

      The configuration option to update

      newValue -

      The new value of the configuration option

    • getConfigurationOptionValue

      Object getConfigurationOptionValue(ConfigurationOption configurationOption)
      Gets the current value of a configuration option
      Parameters:
      configurationOption -

      The configuration option to get the value of

      Returns:

      The current value of the specified configuration option

    • saveConfiguration

      void saveConfiguration()
      Saves the current state of the configuration to disk

      This needs to be run after any config changes to update the config file.

    • reload

      void reload()
      Reloads the configuration from disk

      This needs to be executed in order for saved config changes to take effect.