Class PaymentLockInfoMethodArgumentResolver
java.lang.Object
com.broadleafcommerce.paymenttransaction.web.resolver.PaymentLockInfoMethodArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class PaymentLockInfoMethodArgumentResolver
extends Object
implements org.springframework.web.method.support.HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
implementation meant to resolve the attributes of a
PaymentLockInfo
object, which will be used to evaluate externally-owned payment locks.- Author:
- Chris Kittrell (ckittrell)
-
Constructor Summary
ConstructorDescriptionPaymentLockInfoMethodArgumentResolver
(RequestPaymentLockInfoResolver paymentLockInfoResolver, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected RequestPaymentLockInfoResolver
protected com.broadleafcommerce.common.extension.TypeFactory
resolveArgument
(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory) boolean
supportsParameter
(org.springframework.core.MethodParameter parameter)
-
Constructor Details
-
PaymentLockInfoMethodArgumentResolver
public PaymentLockInfoMethodArgumentResolver(RequestPaymentLockInfoResolver paymentLockInfoResolver, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) - Specified by:
supportsParameter
in interfaceorg.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 interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
- Throws:
Exception
-
getPaymentLockInfoResolver
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-