Package com.vaadin.flow.router
Interface RoutePathProvider
- All Known Implementing Classes:
DefaultRoutePathProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Allows to implement a custom navigation target path generation logic for
components annotated with
@Route(Route.NAMING_CONVENTION)
.- Since:
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptiongetRoutePath
(Class<?> navigationTarget) Produces a path for thenavigationTarget
component class.
-
Method Details
-
getRoutePath
Produces a path for thenavigationTarget
component class.- Parameters:
navigationTarget
- a navigation target class- Returns:
- a route path for the navigation target, may be
null
if the provided class is not a navigation target
-