Module io.ebean.api

Interface Plugin


public interface Plugin
A 'plugin' that wants to be configured on startup so it can use features of the Database itself.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Configure the plugin.
    void
    online(boolean online)
    Called just before the server starts indicating if it is coming up in online mode.
    void
    Called when the server is shutting down.
  • Method Details

    • configure

      void configure(SpiServer server)
      Configure the plugin.
    • online

      void online(boolean online)
      Called just before the server starts indicating if it is coming up in online mode.
    • shutdown

      void shutdown()
      Called when the server is shutting down.

      Plugins should shutdown any resources they are using cleanly.