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.

@FunctionalInterface public interface RoutePathProvider
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 Type
    Method
    Description
    getRoutePath(Class<?> navigationTarget)
    Produces a path for the navigationTarget component class.
  • Method Details

    • getRoutePath

      String getRoutePath(Class<?> navigationTarget)
      Produces a path for the navigationTarget 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