Class TomlConfig

java.lang.Object
com.mrivanplays.annotationconfig.toml.TomlConfig

public final class TomlConfig extends Object
Represents configuration, utilising TOML.
Since:
1.0
Author:
MrIvanPlays
  • Field Details

  • Constructor Details

  • Method Details

    • getConfigResolver

      public static com.mrivanplays.annotationconfig.core.resolver.ConfigResolver getConfigResolver()
      Returns the ConfigResolver instance for toml config.
      Returns:
      config resolver
    • load

      @Deprecated public static void load(Object annotatedConfig, File file)
      Loads the config object from the file. If the file does not exist, it creates one.
      Parameters:
      annotatedConfig - annotated config
      file - file
    • load

      @Deprecated public static void load(Object annotatedConfig, File file, com.fasterxml.jackson.dataformat.toml.TomlMapper tomlMapper)
      Deprecated.
      Loads the config object from the file. If the file does not exist, it creates one.
      Parameters:
      annotatedConfig - annotated config
      file - file
      tomlMapper - toml mapper