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.


    @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

      All Methods
      Modifier and Type Method and Description
      String getRoutePath(Class<?> navigationTarget)

      Produces a path for the navigationTarget component class.

    • Method Detail

      • 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