Interface QJavalinRouteProviderInterface
- All Known Implementing Classes:
IsolatedSpaRouteProvider,JavalinHealthRouteProvider,ProcessBasedRouter,SimpleFileSystemDirectoryRouter
public interface QJavalinRouteProviderInterface
Interface for classes that can provide a list of endpoints to a javalin
server.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidacceptJavalinConfig(io.javalin.config.JavalinConfig config) when the javalin service is being configured as part of its boot up, accept the javalinConfig object, to perform whatever setup you need, such as setting up routes.default voidacceptJavalinService(io.javalin.Javalin service) when the javalin service is being configured as part of its boot up, accept the Javalin service object, to perform whatever setup you need, such as setting up before/after handlers.default io.javalin.apibuilder.EndpointGroupvoidsetQInstance(QInstance qInstance) For initial setup when server boots, set the qInstance - but also, e.g., for development, to do a hot-swap.
-
Method Details
-
setQInstance
For initial setup when server boots, set the qInstance - but also, e.g., for development, to do a hot-swap. -
getJavalinEndpointGroup
default io.javalin.apibuilder.EndpointGroup getJavalinEndpointGroup() -
acceptJavalinConfig
default void acceptJavalinConfig(io.javalin.config.JavalinConfig config) when the javalin service is being configured as part of its boot up, accept the javalinConfig object, to perform whatever setup you need, such as setting up routes. -
acceptJavalinService
default void acceptJavalinService(io.javalin.Javalin service) when the javalin service is being configured as part of its boot up, accept the Javalin service object, to perform whatever setup you need, such as setting up before/after handlers.
-