cli@21: /* cli@21: * SONEWS News Server cli@21: * see AUTHORS for the list of contributors cli@21: * cli@21: * This program is free software: you can redistribute it and/or modify cli@21: * it under the terms of the GNU General Public License as published by cli@21: * the Free Software Foundation, either version 3 of the License, or cli@21: * (at your option) any later version. cli@21: * cli@21: * This program is distributed in the hope that it will be useful, cli@21: * but WITHOUT ANY WARRANTY; without even the implied warranty of cli@21: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cli@21: * GNU General Public License for more details. cli@21: * cli@21: * You should have received a copy of the GNU General Public License cli@21: * along with this program. If not, see . cli@21: */ cli@21: cli@21: package org.sonews.plugin; cli@21: cli@21: /** cli@21: * A generic Plugin for sonews. Implementing classes do not really add new cli@21: * functionality to sonews but can use this interface as convenient procedure cli@21: * for installing functionality plugins, e.g. Command-Plugins or Storage-Plugins. cli@21: * @author Christian Lins cli@21: * @since sonews/1.1 cli@21: */ cli@21: public interface Plugin cli@21: { cli@21: cli@21: /** cli@21: * Called when the Plugin is loaded by sonews. This method can be used cli@21: * by implementing classes to install additional or required plugins. cli@21: */ cli@21: void load(); cli@21: cli@21: /** cli@21: * Called when the Plugin is unloaded by sonews. cli@21: */ cli@21: void unload(); cli@21: cli@21: }