public interface PropertyReader
| Modifier and Type | Method and Description |
|---|---|
Object |
getObject(String path)
Returns the value for the given path, or null if not present.
|
<T> T |
getTypedObject(String path,
Class<T> clazz)
Returns the value for the given path in a typed manner.
|
void |
reload()
Reloads the properties from the external source.
|
void |
set(String path,
Object value)
Sets the value at the given path in memory.
|
Object getObject(String path)
path - the path to retrieve the value for<T> T getTypedObject(String path, Class<T> clazz)
T - the class' typepath - the path to retrieve the value forclazz - the class to cast the value to if possiblevoid set(String path, @Nullable Object value)
PropertyResource.exportProperties(ch.jalu.configme.configurationdata.ConfigurationData).path - the path to set a value forvalue - the value to setvoid reload()
Copyright © 2016–2018 The AuthMe Team. All rights reserved.