Interface CreatableConfig<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 CreatableConfig<K>
Defines the capability for a configuration to be created.
Implementations of this interface provide a specific
ConfigOperation
dedicated to initializing the configuration file on the physical storage.- Since:
- 0.1
- Author:
- a8kj7sea
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Provides the operation logic for creating the configuration.
-
Method Details
-
create
ConfigOperation<K> create()Provides the operation logic for creating the configuration. This typically involves checking for file existence and copying default resources.- Returns:
- a
ConfigOperationrepresenting the creation process. - Since:
- 0.1
-