Class MurmelConfiguration
java.lang.Object
de.murmelmeister.murmelapi.configuration.MurmelMemory
de.murmelmeister.murmelapi.configuration.MurmelConfiguration
MurmelConfiguration is a configuration management class that extends
MurmelMemory
for handling YAML configuration files. It provides functionality to load and
save configurations in a thread-safe manner.-
Field Summary
Fields inherited from class de.murmelmeister.murmelapi.configuration.MurmelMemory
data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLoads the configuration data from the specified file.static MurmelConfigurationloadConfiguration(File file) Loads the configuration data from the specified file and returns a MurmelConfiguration object.voidSaves the configuration data to the specified file.Methods inherited from class de.murmelmeister.murmelapi.configuration.MurmelMemory
get, get, getBoolean, getBooleanList, getByte, getByteList, getCharacter, getCharacterList, getDouble, getDoubleList, getFloat, getFloatList, getInteger, getIntegerList, getList, getLong, getLongList, getOptional, getShort, getShortList, getString, getStringList, set
-
Constructor Details
-
MurmelConfiguration
public MurmelConfiguration()
-
-
Method Details
-
load
Loads the configuration data from the specified file.- Parameters:
file- the file to load the data from
-
save
Saves the configuration data to the specified file.- Parameters:
file- the file to save the data to
-
loadConfiguration
Loads the configuration data from the specified file and returns a MurmelConfiguration object.- Parameters:
file- the file to load the data from- Returns:
- a MurmelConfiguration object with the loaded configuration data
-