public static class ComponentRouteLocatorBuilder.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ComponentRouteLocator |
build() |
ComponentRouteLocatorBuilder.Builder |
route(String path,
UnaryOperator<ComponentRoute.ComponentRouteBuilder> routeBuilderFn)
Creates a new
ComponentRoute . |
ComponentRouteLocatorBuilder.Builder |
route(UnaryOperator<ComponentRoute.ComponentRouteBuilder> routeBuilderFn)
Creates a new
ComponentRoute . |
public ComponentRouteLocatorBuilder.Builder route(UnaryOperator<ComponentRoute.ComponentRouteBuilder> routeBuilderFn)
ComponentRoute
.routeBuilderFn
- a function which takes in a ComponentRoute.ComponentRouteBuilder
and
returns a ComponentRoute.ComponentRouteBuilder
ComponentRoute.ComponentRouteBuilder
public ComponentRouteLocatorBuilder.Builder route(String path, UnaryOperator<ComponentRoute.ComponentRouteBuilder> routeBuilderFn)
ComponentRoute
.path
- the path for the route, see ComponentRoute.path
routeBuilderFn
- a function which takes in a ComponentRoute.ComponentRouteBuilder
and
returns a ComponentRoute.ComponentRouteBuilder
ComponentRoute.ComponentRouteBuilder
public ComponentRouteLocator build()
Copyright © 2021. All rights reserved.