Class TomlConfig
java.lang.Object
com.mrivanplays.annotationconfig.toml.TomlConfig
Represents configuration, utilising TOML.
- Since:
- 1.0
- Author:
- MrIvanPlays
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Returns the key on which the mapper is stored. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.mrivanplays.annotationconfig.core.resolver.ConfigResolver
Returns theConfigResolver
instance for toml config.static void
Deprecated.static void
load
(Object annotatedConfig, File file, com.fasterxml.jackson.dataformat.toml.TomlMapper tomlMapper) Deprecated.
-
Field Details
-
MAPPER_KEY
Returns the key on which the mapper is stored.- See Also:
-
-
Constructor Details
-
TomlConfig
public TomlConfig()
-
-
Method Details
-
getConfigResolver
Returns theConfigResolver
instance for toml config.- Returns:
- config resolver
-
load
Deprecated.Loads the config object from the file. If the file does not exist, it creates one.- Parameters:
annotatedConfig
- annotated configfile
- 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 configfile
- filetomlMapper
- toml mapper
-
load(Object, File, TomlMapper)