Class RouteTable
java.lang.Object
megalodonte.base.route.RouteTable
Stores the route definitions and the entrypoint. Owns route matching, so both
the router (navigation) and
ScreenContextBase
(spawn) resolve routes through the same registry.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolves the given path against the registered routes, extracting dynamic segment parameters (${name}).routes()
-
Constructor Details
-
RouteTable
-
-
Method Details
-
entrypoint
-
routes
-
resolve
Resolves the given path against the registered routes, extracting dynamic segment parameters (${name}).- Parameters:
path- the route identification to resolve (e.g. "user/123")- Returns:
- the matched route and its parameters
- Throws:
RouteNotFoundException- if no route matches the given path
-