src/org/sonews/plugin/Plugin.java
author František Kučera <franta-hg@frantovo.cz>
Sun Oct 16 22:36:46 2011 +0200 (2011-10-16)
changeset 82 21f413541357
parent 35 ed84c8bdd87b
permissions -rwxr-xr-x
Drupal: tidy, odstavce, XSLT
cli@21
     1
/*
cli@21
     2
 *   SONEWS News Server
cli@21
     3
 *   see AUTHORS for the list of contributors
cli@21
     4
 *
cli@21
     5
 *   This program is free software: you can redistribute it and/or modify
cli@21
     6
 *   it under the terms of the GNU General Public License as published by
cli@21
     7
 *   the Free Software Foundation, either version 3 of the License, or
cli@21
     8
 *   (at your option) any later version.
cli@21
     9
 *
cli@21
    10
 *   This program is distributed in the hope that it will be useful,
cli@21
    11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
cli@21
    12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
cli@21
    13
 *   GNU General Public License for more details.
cli@21
    14
 *
cli@21
    15
 *   You should have received a copy of the GNU General Public License
cli@21
    16
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
cli@21
    17
 */
cli@21
    18
cli@21
    19
package org.sonews.plugin;
cli@21
    20
cli@21
    21
/**
cli@21
    22
 * A generic Plugin for sonews. Implementing classes do not really add new
cli@21
    23
 * functionality to sonews but can use this interface as convenient procedure
cli@21
    24
 * for installing functionality plugins, e.g. Command-Plugins or Storage-Plugins.
cli@21
    25
 * @author Christian Lins
cli@21
    26
 * @since sonews/1.1
cli@21
    27
 */
cli@21
    28
public interface Plugin
cli@21
    29
{
cli@21
    30
cli@37
    31
	/**
cli@37
    32
	 * Called when the Plugin is loaded by sonews. This method can be used
cli@37
    33
	 * by implementing classes to install additional or required plugins.
cli@37
    34
	 */
cli@37
    35
	void load();
cli@21
    36
cli@37
    37
	/**
cli@37
    38
	 * Called when the Plugin is unloaded by sonews.
cli@37
    39
	 */
cli@37
    40
	void unload();
cli@21
    41
}