public class ClasspathPropertiesReader extends Object implements PropertiesReader
PropertiesReader.VersionedProperties| Constructor and Description |
|---|
ClasspathPropertiesReader(String classpathUri) |
ClasspathPropertiesReader(String classpathUri,
boolean actLikeYouSupportNotifications) |
| Modifier and Type | Method and Description |
|---|---|
PropertiesReader.VersionedProperties |
read(PropertiesWatcher watcher)
Retrieves the latest
Properties file that's been registered. |
boolean |
supportsNotification() |
public ClasspathPropertiesReader(String classpathUri, boolean actLikeYouSupportNotifications) throws IOException
IOExceptionpublic ClasspathPropertiesReader(String classpathUri) throws IOException
IOExceptionpublic PropertiesReader.VersionedProperties read(PropertiesWatcher watcher) throws IOException
PropertiesReaderProperties file that's been registered.read in interface PropertiesReaderwatcher - if non-null the watcher will be called back when the properties change from the version provided. Upon callback the PropertiesWatcher will be unregistered. A subsequent read will need
to be called in order to re-register for another change.PropertiesReader.VersionedPropertiesIOException - if the underlying transport or storage mechanism throws an IOExceptionpublic boolean supportsNotification()
supportsNotification in interface PropertiesReaderCopyright © 2018. All rights reserved.