Class FlashRegistrar<SELF extends FlashRegistrar<SELF>>

java.lang.Object
dev.relism.flash.extension.FlashRegistrar<SELF>
Type Parameters:
SELF - concrete registrar type — enables fluent chaining without casting
Direct Known Subclasses:
FlashApp, FlashScope

public abstract class FlashRegistrar<SELF extends FlashRegistrar<SELF>> extends Object
Common route-registration surface shared by FlashApp and FlashScope.

All route methods register immediately — no deferred .with() call. Middleware is passed as a varargs third argument:


 app.get("/ping",    (req, res) -> "pong")
 app.get("/secured", (req, res) -> user(), oidc.protect())
 app.get("/admin",   handler, oidc.requireRole("admin"), rateLimiter)
 

FlashExtension.routes(dev.relism.flash.extension.FlashRegistrar<?>, dev.relism.flash.extension.FlashContext) receives a FlashRegistrar<?> for route registration. Extension installation (install()) is only available on FlashApp — scoped install is intentionally unsupported.