Interface UpdatableConfig<K>
- Type Parameters:
K- the type of data keys used in the configuration file.
- All Known Subinterfaces:
CRUDOperations<K>
- All Known Implementing Classes:
AutoReadBukkitConfig,AutoReadYamlSource,BaseConfig,BasicBukkitConfig,BasicVelocityConfig,BukkitConfig,YamlSource
public interface UpdatableConfig<K>
Defines the capability for a configuration to be updated or saved.
Implementations of this interface provide a
ConfigOperation responsible
for serializing the in-memory data and persisting it back to the physical file on disk.- Since:
- 0.1
- Author:
- a8kj7sea
-
Method Summary
Modifier and TypeMethodDescriptionupdate()Provides the operation logic for updating (saving) the configuration data.
-
Method Details
-
update
ConfigOperation<K> update()Provides the operation logic for updating (saving) the configuration data. This typically involves taking the current state fromDataMemoryand writing it to the file, ensuring all changes are synchronized.- Returns:
- a
ConfigOperationrepresenting the updating/saving process. - Since:
- 0.1
-