Interface QJavalinRouteProviderInterface
- All Known Implementing Classes:
ProcessBasedRouter
,SimpleFileSystemDirectoryRouter
public interface QJavalinRouteProviderInterface
Interface for classes that can provide a list of endpoints to a javalin
server.
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.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.default io.javalin.apibuilder.EndpointGroup
void
setQInstance
(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.
-