public interface PackageConfig
A persistent configuration file for each package.
-
Method Summary
Modifier and TypeMethodDescriptionGet a value from the configuration.getAll()Get all the values in the configuration.getOrThrow(String key) Get a value from the configuration, or throw an exception if it does not exist.voidLoad the configuration from the file system if it has not been read in yet.voidLoad the configuration from the file system, regardless of if it has been read in yet.voidRemove a value from the configuration.voidSave the configuration to the file system.voidSet a value in the configuration.
-
Method Details
-
loadConfig
void loadConfig()Load the configuration from the file system if it has not been read in yet. -
reloadConfig
void reloadConfig()Load the configuration from the file system, regardless of if it has been read in yet. This replaces all previously read in values. -
saveConfig
void saveConfig()Save the configuration to the file system. -
get
-
getOrThrow
-
set
-
remove
Remove a value from the configuration.- Parameters:
key- The key to remove the value for
-
getAll
-