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
  • 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/output
      permissions - The base permissions universally required for all methods in the controller. See Policy.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.