Interface PluginsStateStore
- All Known Implementing Classes:
DbBackedPluginStateStore
public interface PluginsStateStore
Interface allowing to persist state of installed plugins between applications startups.
-
Method Summary
Modifier and TypeMethodDescriptiongetPluginState
(Plugin plugin) Retrieves last saved plugin.void
storePluginState
(Plugin plugin, Plugin.PluginState pluginState) When called specified plugin state is persisted ina a non-volatile way.
-
Method Details
-
storePluginState
When called specified plugin state is persisted ina a non-volatile way.- Parameters:
plugin
- plugin which state is to be saved.pluginState
- plugin's state to be persisted.
-
getPluginState
Retrieves last saved plugin.- Parameters:
plugin
- plugin which state is to be retrieved.- Returns:
- last saved state of passed plugin.
-