Package me.a8kj.config.file
Class AutoReadBukkitConfig
java.lang.Object
me.a8kj.config.file.BaseConfig<String>
me.a8kj.config.file.BukkitConfig<String>
me.a8kj.config.file.BasicBukkitConfig
me.a8kj.config.file.AutoReadBukkitConfig
- All Implemented Interfaces:
CreatableConfig<String>,CRUDOperations<String>,DeletableConfig<String>,ReadableConfig<String>,UpdatableConfig<String>
An extended implementation of
BasicBukkitConfig that automatically
triggers a BasicBukkitConfig.read() operation immediately after the file is created.
This is ideal for configurations that should always have their memory populated with existing disk data upon initialization.
* @author a8kj7sea- Since:
- 0.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonPostCreate(ConfigFile<String> config) Overrides the post-create hook to perform an automatic read operation.Methods inherited from class me.a8kj.config.file.BasicBukkitConfig
onPostDelete, read, updateMethods inherited from class me.a8kj.config.file.BaseConfig
create, delete, getReader, getWriter, onPreCreate, onPreDelete
-
Constructor Details
-
AutoReadBukkitConfig
public AutoReadBukkitConfig()
-
-
Method Details
-
onPostCreate
Overrides the post-create hook to perform an automatic read operation. It still maintains the event dispatching by calling super.- Overrides:
onPostCreatein classBasicBukkitConfig- Parameters:
config- The configuration file instance.
-