Package com.seeq.link.sdk.interfaces
Interface FileConfigObjectProvider
- All Superinterfaces:
ConfigObjectProvider
- All Known Implementing Classes:
DefaultFileConfigObjectProvider
,NoOpFileConfigObjectProvider
Used to persist config objects to/from disk.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(Path dataPath) Initializes the provider with a data path to persist config objects to.void
registerChangeCallback
(String name, Consumer<String> callback) Registers a callback for when the configuration has changed.void
Unregisters a callback previously registered.Methods inherited from interface com.seeq.link.sdk.interfaces.ConfigObjectProvider
loadConfigObject, saveConfigObject
-
Method Details
-
initialize
Initializes the provider with a data path to persist config objects to.- Parameters:
dataPath
- The data path to persist config objects to.
-
registerChangeCallback
Registers a callback for when the configuration has changed.- Parameters:
name
- Name of the configuration object you're interested in.callback
- Callback function that takes the name as its only parameter.
-
unregisterChangeCallback
Unregisters a callback previously registered.- Parameters:
name
- Name of the configuration object you're interested in.
-