Schnittstelle ServerPlugin


public interface ServerPlugin
This interface must be implemented by server plugin entry points. Its methods are called during server start and initialize the plugin's server components.
Seit:
inetcore 1.0
  • Feldübersicht

    Felder
    Modifikator und Typ
    Feld
    Beschreibung
    static final String
    The version of the core.
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    void
    Initializes the server part of the current plugin.
    void
    Registers all instances of extensions in the ServerPluginManager.
    default void
    registerHelp(com.inet.plugin.HelpProviderContainer container)
    Register all help providers.
    void
    Is called if the server was stopped.
    void
    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.
  • Felddetails

    • CORE_VERSION

      static final String CORE_VERSION
      The version of the core.
      Seit:
      inetcore 2.0
      Siehe auch:
  • Methodendetails

    • registerHelp

      default void registerHelp(com.inet.plugin.HelpProviderContainer container)
      Register all help providers. This is call before the registerExtension phase. In a the help center mode it is call also for inactive plugins.
      Parameter:
      container - the container for the HelpProviders
      Seit:
      inetcore 3.0
    • registerExtension

      void registerExtension(ServerPluginManager spm)
      Registers all instances of extensions in the 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.
      Parameter:
      spm - the plugin manager to register the plugins.
      Seit:
      inetcore 1.0
      Siehe auch:
    • init

      void init(ServerPluginManager spm)
      Initializes the server part of the current plugin.
      Parameter:
      spm - the plugin manager to query e.g. all extension of a specific interface.
      Seit:
      inetcore 1.0
    • reset

      void reset()
      Is called if the server was stopped. All background threads should be interrupted, file and socket handles closed.
      Seit:
      inetcore 1.0
    • restart

      void restart()
      Is called after a restart of the server within the same Java VM instance. All needed threads can be restarted.
      Seit:
      inetcore 1.0
    • uninstall

      default void uninstall(boolean isFullUninstall)
      Is called by ServerPluginManager during execution of uninstall tasks of available plugins. By default does nothing.
      Parameter:
      isFullUninstall - whether a full uninstall must be performed.
      Seit:
      inetcore 2.2