Package org.springframework.data.web
Class PagedResourcesAssemblerArgumentResolver
java.lang.Object
org.springframework.data.web.PagedResourcesAssemblerArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver
public class PagedResourcesAssemblerArgumentResolver
extends Object
implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to allow injection of PagedResourcesAssembler
into Spring MVC
controller methods.- Since:
- 1.6
- Author:
- Oliver Gierke, Nick Williams, Christoph Strobl
-
Constructor Summary
ConstructorDescriptionCreates a newPagedResourcesAssemblerArgumentResolver
using the givenPageableHandlerMethodArgumentResolver
. -
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) boolean
supportsParameter
(MethodParameter parameter)
-
Constructor Details
-
PagedResourcesAssemblerArgumentResolver
public PagedResourcesAssemblerArgumentResolver(HateoasPageableHandlerMethodArgumentResolver resolver) Creates a newPagedResourcesAssemblerArgumentResolver
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
-