Class TomlConfig
- java.lang.Object
-
- com.mrivanplays.annotationconfig.toml.TomlConfig
-
public final class TomlConfig extends Object
Represents configuration, utilising TOML.
-
-
Constructor Summary
Constructors Constructor Description TomlConfig()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.mrivanplays.annotationconfig.core.CustomAnnotationRegistry
getAnnotationRegistry()
Returns theCustomAnnotationRegistry
for this config.static void
load(Object annotatedConfig, File file)
Loads the config object from the file.static void
load(Object annotatedConfig, File file, com.moandjiezana.toml.TomlWriter tomlWriter)
Loads the config object from the file.
-
-
-
Constructor Detail
-
TomlConfig
public TomlConfig()
-
-
Method Detail
-
getAnnotationRegistry
public static com.mrivanplays.annotationconfig.core.CustomAnnotationRegistry getAnnotationRegistry()
Returns theCustomAnnotationRegistry
for this config.- Returns:
- custom annotation registry
-
load
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 configfile
- file
-
-