Package 

Class Plugin

  • All Implemented Interfaces:

    
    public abstract class Plugin<CONFIG extends Object>
    
                        

    Extend this class to create a plugin with a config. The config is created by combining a default config and a user config. The combined config is available as pluginConfig to the extending class.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit onInitialize(JavalinConfig config) Initialize properties and access configuration before any handler is registered.
      Unit onStart(JavalinConfig config) Called when the plugin is applied to the Javalin instance.
      Boolean repeatable() Checks if plugin can be registered multiple times.
      PluginPriority priority() The priority of the plugin that determines when it should be started.
      String name() The name of this plugin.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait