Package org.springframework.data.web
Class SlicedResourcesAssemblerArgumentResolver
java.lang.Object
org.springframework.data.web.SlicedResourcesAssemblerArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class SlicedResourcesAssemblerArgumentResolver
extends Object
implements org.springframework.web.method.support.HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to allow injection of SlicedResourcesAssembler
into Spring MVC
controller methods.- Since:
- 3.1
- Author:
- Michael Schout, Oliver Drotbohm
-
Constructor Summary
ConstructorDescriptionCreates a newSlicedResourcesAssemblerArgumentResolver
using the givenPageableHandlerMethodArgumentResolver
. -
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(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
-
SlicedResourcesAssemblerArgumentResolver
public SlicedResourcesAssemblerArgumentResolver(HateoasPageableHandlerMethodArgumentResolver resolver) Creates a newSlicedResourcesAssemblerArgumentResolver
using the givenPageableHandlerMethodArgumentResolver
.- Parameters:
resolver
- can be null.
-
-
Method Details
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) - Specified by:
supportsParameter
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
-
resolveArgument
@NonNull 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) - Specified by:
resolveArgument
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
-