All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.javalin.core.plugin.Plugin Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
package io.javalin.core.plugin;

import io.javalin.Javalin;
import io.javalin.core.JavalinConfig;
import org.jetbrains.annotations.NotNull;

/**
 * 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 {@link JavalinConfig#registerPlugin(Plugin)}.
 */
@FunctionalInterface
public interface Plugin {
    /**
     * Configure the Javalin instance and register handler
     */
    void apply(@NotNull Javalin app);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy