plugin.java

来自「JBother是纯Java开发的Jabber(即时消息开源软件)客户端。支持群组」· Java 代码 · 共 27 行

JAVA
27
字号
package com.valhalla.pluginmanager;/** * Defines the main plugin interface. This interface MUST be implemented by all * JBother plugins. The plugin MUST have a file called "plugin.properties" * somewhere in the jar, and this file MUST define mainClass to be a class that * implements this interface, or the plugin will not work *  * @author Adam Olsen * @version 1.0 */public interface Plugin {    /**     * This method will be called on the mainClass of the plugin at load time.     * This method is responsible for initializing the plugin and registering     * for different plugin events.     *      * @return returns true if the plugin loaded successfully, false if not     */    public boolean init();    /**     * This method will be called on the mainClass of the plugin to unload it.     * After this method is called the class should no longer be being used.     */    public void unload();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?