Class TrackableFlowComponentFactory
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.TrackableFlowComponentFactory
-
public final class TrackableFlowComponentFactory extends Object
Factory for creating API rest controller classes dynamically based on a projection class, and some common configuration information.- Author:
- Jeff Fischer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrackableFlowComponentFactory.CreateInterceptor
static class
TrackableFlowComponentFactory.DeleteInterceptor
static class
TrackableFlowComponentFactory.ReadAllInterceptor
static class
TrackableFlowComponentFactory.ReadByIdInterceptor
static class
TrackableFlowComponentFactory.ReplaceInterceptor
static class
TrackableFlowComponentFactory.UpdateInterceptor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>
createAPI(org.springframework.core.ResolvableType projection, String[] permissions, String rootPath, String routeKey)
Create API rest controller classes dynamically
-
-
-
Method Detail
-
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.
-
-