stateaware.java
来自「模块化您的应用系统」· Java 代码 · 共 22 行
JAVA
22 行
package com.opensymphony.tonic;
/**
* Makes a tonic module aware of its activation state. Modules should implement this
* interface if they want to be notified when they are enabled and disabled.
*/
public interface StateAware
{
/**
* Called by the tonic manager when the module is activated. Modules that are active
* when the tonic manager is initialised will have this method called at that time.
*/
void enabled();
/**
* Called by the tonic manager when the module is deactivated. This method will only
* be called if the tonic is deactivated while the application is running: stopping
* the server will <i>not</i> cause this method to be called on any plugins.
*/
void disabled();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?