pluginstatestore.java
来自「模块化您的应用系统」· Java 代码 · 共 30 行
JAVA
30 行
package com.opensymphony.tonic;
/**
* A wrapper object that the user implements to store the state of plugins.
*/
public interface PluginStateStore
{
/**
* Put the current global state of tonic activation/deactivation into permanent
* storage. The map passed in should have keys of the form "tonic" or
* "tonic:module", and Boolean values representing whether the tonic or
* module is enabled (true if it's enabled).
* <p/>
* <p>Callers should only pass in values for those plugins or modules that are
* <i>not</i> in their default state.
*
* @param state the map of tonic and module activation states
*/
void savePluginState(PluginManagerState state);
/**
* Get the saved activation state of loaded plugins or modules. The map
* will be identical to the one described in savePluginState.
*
* @return the configured activation/deactivation state for plugins in this Confluence
* instance.
*/
PluginManagerState loadPluginState();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?