public interface ServerPlugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CORE_VERSION
The version of the core.
|
Modifier and Type | Method and Description |
---|---|
void |
init(ServerPluginManager spm)
Initializes the server part of the current plugin.
|
void |
registerExtension(ServerPluginManager spm)
Registers all instances of extensions in the
ServerPluginManager . |
default void |
registerHelp(com.inet.plugin.HelpProviderContainer container)
Register all help providers.
|
void |
reset()
Is called if the server was stopped.
|
void |
restart()
Is called after a restart of the server within the same Java VM instance.
|
default void |
uninstall(boolean isFullUninstall)
Is called by
ServerPluginManager during execution of uninstall tasks of available plugins. |
static final java.lang.String CORE_VERSION
default void registerHelp(com.inet.plugin.HelpProviderContainer container)
container
- the container for the HelpProvidersvoid registerExtension(ServerPluginManager spm)
ServerPluginManager
. If this method is failing with an
exception then this plugin is ignored and the error message can be see in the configuration manager web
interface.spm
- the plugin manager to register the plugins.ServerPluginManager.register(Class, Object)
void init(ServerPluginManager spm)
spm
- the plugin manager to query e.g. all extension of a specific interface.void reset()
void restart()
default void uninstall(boolean isFullUninstall)
ServerPluginManager
during execution of uninstall tasks of available plugins. By default does nothing.isFullUninstall
- whether a full uninstall must be performed.Copyright © 1999-2020 by i-net software GmbH