Interface QueryConfiguration

All Known Implementing Classes:
PropertiesQueryConfiguration, YamlQueryConfiguration

public interface QueryConfiguration
Configuration for PluginQuery
Author:
Thito Yalasatria Sunarya
  • Method Details

    • getOption

      <T> T getOption(QueryConfigurationKey<T> key)
      Get option value from the configuration
      Type Parameters:
      T - Anything
      Parameters:
      key - the Key holder
      Returns:
      the value
    • setOption

      <T> void setOption(QueryConfigurationKey<T> key, T value)
      Set option value on the configuration
      Type Parameters:
      T - Anything
      Parameters:
      key - the Key holder
      value - the value
    • loadConfiguration

      void loadConfiguration(File file) throws IOException
      Load configuration from a file (YAML)
      Parameters:
      file - the file
      Throws:
      IOException
    • saveConfiguration

      void saveConfiguration(File file) throws IOException
      Dump configuration into a file (YAML)
      Parameters:
      file - the file
      Throws:
      IOException