java.io.Closeable, java.lang.AutoCloseable, ConfigProvider, Configurablepublic class FileConfigProvider extends java.lang.Object implements ConfigProvider
ConfigProvider that represents a Properties file.
All property keys and values are stored as cleartext.| Constructor | Description |
|---|---|
FileConfigProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
configure(java.util.Map<java.lang.String,?> configs) |
Configure this class with the given key-value pairs
|
ConfigData |
get(java.lang.String path) |
Retrieves the data at the given Properties file.
|
ConfigData |
get(java.lang.String path,
java.util.Set<java.lang.String> keys) |
Retrieves the data with the given keys at the given Properties file.
|
protected java.io.Reader |
reader(java.lang.String path) |
subscribe, unsubscribe, unsubscribeAllpublic void configure(java.util.Map<java.lang.String,?> configs)
Configurableconfigure in interface Configurablepublic ConfigData get(java.lang.String path)
get in interface ConfigProviderpath - the file where the data residespublic ConfigData get(java.lang.String path, java.util.Set<java.lang.String> keys)
get in interface ConfigProviderpath - the file where the data resideskeys - the keys whose values will be retrievedprotected java.io.Reader reader(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeable