public interface SettingsManager
The settings manager manages a property resource,
configuration data, and an optional
migration service.
The settings manager allows to look up and modify properties. After it is initialized, the settings manager should be the only class from ConfigMe that developers need to interact with.
SettingsManagerBuilder| Modifier and Type | Method and Description |
|---|---|
<T> T |
getProperty(Property<T> property)
Gets the given property from the configuration.
|
void |
reload()
Reloads the configuration.
|
void |
save()
Saves the properties to the configuration file.
|
<T> void |
setProperty(Property<T> property,
T value)
Sets a new value for the given property.
|
<T> T getProperty(Property<T> property)
T - The property's typeproperty - The property to retrieve<T> void setProperty(Property<T> property, T value)
T - The property's typeproperty - The property to modifyvalue - The new value to assign to the propertyvoid reload()
void save()
Copyright © 2016–2018 The AuthMe Team. All rights reserved.