Class RoutesSpec
java.lang.Object
com.broadleafcommerce.metadata.route.builder.RoutesSpec
A specification used for creating a
ComponentRouteLocator
.- Author:
- Nick Crum (ncrum)
-
Constructor Summary
ConstructorsConstructorDescriptionRoutesSpec
(org.springframework.context.ConfigurableApplicationContext context) -
Method Summary
-
Constructor Details
-
RoutesSpec
public RoutesSpec(org.springframework.context.ConfigurableApplicationContext context)
-
-
Method Details
-
route
Adds a newRouteSpec
configured by the provided function.- Parameters:
fn
- used for customization the route spec- Returns:
- this
-
route
Adds a newRouteSpec
with the provided path and configured by the provided function.- Parameters:
path
- the path of the routefn
- used for customization the route spec- Returns:
- this
-
build
-
getContext
protected org.springframework.context.ConfigurableApplicationContext getContext()
-