@ExperimentalApi public class LoadOnlyPluginPersistentStateStore extends Object implements PluginPersistentStateStore
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().
| Constructor and Description |
|---|
LoadOnlyPluginPersistentStateStore() |
LoadOnlyPluginPersistentStateStore(PluginPersistentState pluginPersistentState) |
| Modifier and Type | Method and Description |
|---|---|
PluginPersistentState |
load()
Get the saved activation state of loaded plugins or modules.
|
void |
save(PluginPersistentState state)
This implementation ignores the provided state and throws.
|
public LoadOnlyPluginPersistentStateStore()
public LoadOnlyPluginPersistentStateStore(PluginPersistentState pluginPersistentState)
public void save(PluginPersistentState state)
save in interface PluginPersistentStateStorestate - ignoredIllegalStateException - alwayspublic PluginPersistentState load()
PluginPersistentStateStoreload in interface PluginPersistentStateStoreCopyright © 2019 Atlassian. All rights reserved.