Package dev.relism.flash.extension
Interface RouteListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Observer notified once for each route registered on a
FlashApp or FlashScope.
Register via FlashContext.addRouteListener(dev.relism.flash.extension.RouteListener). The listener is called
once per route at boot time, before the route is handed to the routing engine.
There is zero overhead on the request hot-path.
Intended for extensions that need to introspect the route graph (e.g. a route viewer, OpenAPI schema builder, etc.) without polluting the routing or middleware infrastructure.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonRoute(RouteEvent event) Called once for every registered route, in registration order.
-
Method Details
-
onRoute
Called once for every registered route, in registration order.- Parameters:
event- immutable snapshot of the route's metadata at registration time
-