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

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

The 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 {
    void apply(@NotNull Javalin app);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy