Package de.exlll.configlib
Class YamlConfigurationStore<T>
java.lang.Object
de.exlll.configlib.YamlConfigurationStore<T>
- Type Parameters:
T- the configuration type
- All Implemented Interfaces:
de.exlll.configlib.FileConfigurationStore<T>,de.exlll.configlib.IOStreamConfigurationStore<T>
public final class YamlConfigurationStore<T>
extends Object
implements de.exlll.configlib.FileConfigurationStore<T>, de.exlll.configlib.IOStreamConfigurationStore<T>
A configuration store for YAML configurations. This class provides two pairs of methods:
One pair for loading configurations from and saving them as YAML text files, and a second pair
for reading configurations from input streams and writing them to output streams.
-
Constructor Summary
ConstructorsConstructorDescriptionYamlConfigurationStore(Class<T> configurationType, YamlConfigurationProperties properties) Constructs a new store. -
Method Summary
-
Constructor Details
-
YamlConfigurationStore
Constructs a new store.- Parameters:
configurationType- the type of configurationproperties- the properties- Throws:
NullPointerException- if any argument is null
-
-
Method Details
-
write
- Specified by:
writein interfacede.exlll.configlib.IOStreamConfigurationStore<T>
-
save
- Specified by:
savein interfacede.exlll.configlib.FileConfigurationStore<T>
-
read
- Specified by:
readin interfacede.exlll.configlib.IOStreamConfigurationStore<T>
-
load
- Specified by:
loadin interfacede.exlll.configlib.FileConfigurationStore<T>
-
update
- Specified by:
updatein interfacede.exlll.configlib.FileConfigurationStore<T>
-