Class CartVersionHandlerMethodArgumentResolver

java.lang.Object
com.broadleafcommerce.cartoperation.web.resolver.CartVersionHandlerMethodArgumentResolver
All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver

public class CartVersionHandlerMethodArgumentResolver extends Object implements org.springframework.web.method.support.HandlerMethodArgumentResolver
Author:
Nick Crum (ncrum)
  • Constructor Details

    • CartVersionHandlerMethodArgumentResolver

      public CartVersionHandlerMethodArgumentResolver(RequestCartVersionResolver versionResolver)
  • Method Details

    • supportsParameter

      public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
      Specified by:
      supportsParameter in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
    • resolveArgument

      @Nullable public Object resolveArgument(org.springframework.core.MethodParameter parameter, @Nullable org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, @Nullable org.springframework.web.bind.support.WebDataBinderFactory binderFactory) throws Exception
      Specified by:
      resolveArgument in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
      Throws:
      Exception
    • getVersionResolver

      protected RequestCartVersionResolver getVersionResolver()