Class LoadOnlyPluginPersistentStateStore
java.lang.Object
com.atlassian.plugin.manager.store.LoadOnlyPluginPersistentStateStore
- All Implemented Interfaces:
PluginPersistentStateStore
@ExperimentalApi
public class LoadOnlyPluginPersistentStateStore
extends Object
implements PluginPersistentStateStore
A read-only implementation of
PluginPersistentStateStore which returns a state provided on construction.
The held PluginPersistentState is not read-only - external modification to it is not prevented, and will be reflected
in the state returned from load().
- Since:
- 3.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionLoadOnlyPluginPersistentStateStore(PluginPersistentState pluginPersistentState) -
Method Summary
Modifier and TypeMethodDescriptionload()Get the saved activation state of loaded plugins or modules.voidsave(PluginPersistentState state) This implementation ignores the provided state and throws.
-
Constructor Details
-
LoadOnlyPluginPersistentStateStore
public LoadOnlyPluginPersistentStateStore() -
LoadOnlyPluginPersistentStateStore
-
-
Method Details
-
save
This implementation ignores the provided state and throws.- Specified by:
savein interfacePluginPersistentStateStore- Parameters:
state- ignored- Throws:
IllegalStateException- always
-
load
Description copied from interface:PluginPersistentStateStoreGet the saved activation state of loaded plugins or modules. The map will be identical to the one described in savePluginState.- Specified by:
loadin interfacePluginPersistentStateStore- Returns:
- the configured activation/deactivation state for plugins in this instance.
-