Class TrackableFlowComponentFactory
java.lang.Object
com.broadleafcommerce.data.tracking.core.TrackableFlowComponentFactory
Factory for creating API rest controller classes dynamically based on a projection class, and
some common configuration information.
- Author:
- Jeff Fischer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
-
Method Summary
-
Method Details
-
createAPI
@NonNull public static Class<?> createAPI(org.springframework.core.ResolvableType projection, String[] permissions, String rootPath, String routeKey) Create API rest controller classes dynamically- Parameters:
projection
- The projection type the controller exposes for input/outputpermissions
- The base permissions universally required for all methods in the controller. SeePolicy.permissionRoots()
.rootPath
- The root path for request mappings in the controller.routeKey
- The key identifying the data route that should be established upon entry for all methods exposed in the controller.- Returns:
- The dynamically generated rest controller class.
-