Interface ReadableConfig<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 ReadableConfig<K>
Defines the capability for a configuration to be read.
Implementations of this interface provide a
ConfigOperation responsible
for parsing the physical file content and loading it into the configuration's memory storage.- Since:
- 0.1
- Author:
- a8kj7sea
-
Method Summary
Modifier and TypeMethodDescriptionread()Provides the operation logic for reading the configuration data.
-
Method Details
-
read
ConfigOperation<K> read()Provides the operation logic for reading the configuration data. This typically involves deserializing the file (e.g., YAML, JSON, Properties) and populating theDataMemory.- Returns:
- a
ConfigOperationrepresenting the reading/loading process. - Since:
- 0.1
-