@Immutable @ThreadSafe public final class ReloadableProperties extends Object
getProperties()
is invoked, properties are checked for
modifications and can be reloaded.Constructor and Description |
---|
ReloadableProperties(String fileName,
String defaultPath)
Creates a new ReloadableProperties instance.
|
Modifier and Type | Method and Description |
---|---|
Properties |
getProperties()
Returns the current snapshot of the Properties.
|
void |
setProperties(Properties newValue) |
@Nonnull public Properties getProperties() throws IOException
Do not keep a reference to the returned object as it is not reloadable itself.
IOException
- if the properties cannot be reloadedpublic void setProperties(@Nonnull Properties newValue) throws IOException
IOException
Copyright © 2020. All Rights Reserved.