Interface Plugin

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Plugin
    A extension is a modular way of adding functionality to a Javalin instance. Lifecycle interfaces can be used to listen to specific callbacks. To apply a plugin use JavalinConfig.registerPlugin(Plugin).
    • Method Detail

      • apply

        void apply​(@NotNull
                   Javalin app)