Package org.springframework.data.web
Class SlicedResourcesAssemblerArgumentResolver
java.lang.Object
org.springframework.data.web.SlicedResourcesAssemblerArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver
public class SlicedResourcesAssemblerArgumentResolver
extends Object
implements 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
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) boolean
supportsParameter
(MethodParameter parameter)
-
Constructor Details
-
SlicedResourcesAssemblerArgumentResolver
public SlicedResourcesAssemblerArgumentResolver(HateoasPageableHandlerMethodArgumentResolver resolver) Creates a newSlicedResourcesAssemblerArgumentResolver
using the givenPageableHandlerMethodArgumentResolver
.- Parameters:
resolver
- can be null.
-
-
Method Details
-
supportsParameter
- Specified by:
supportsParameter
in interfaceHandlerMethodArgumentResolver
-
resolveArgument
@NonNull public Object resolveArgument(MethodParameter parameter, @Nullable ModelAndViewContainer mavContainer, NativeWebRequest webRequest, @Nullable WebDataBinderFactory binderFactory) - Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
-