public class PagedResourcesAssemblerArgumentResolver extends Object implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to allow injection of PagedResourcesAssembler
into Spring MVC
controller methods.Constructor and Description |
---|
PagedResourcesAssemblerArgumentResolver(HateoasPageableHandlerMethodArgumentResolver resolver,
org.springframework.hateoas.MethodLinkBuilderFactory<?> linkBuilderFactory)
Creates a new
PagedResourcesAssemblerArgumentResolver using the given
PageableHandlerMethodArgumentResolver and MethodLinkBuilderFactory . |
Modifier and Type | Method and Description |
---|---|
Object |
resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
boolean |
supportsParameter(MethodParameter parameter) |
public PagedResourcesAssemblerArgumentResolver(HateoasPageableHandlerMethodArgumentResolver resolver, org.springframework.hateoas.MethodLinkBuilderFactory<?> linkBuilderFactory)
PagedResourcesAssemblerArgumentResolver
using the given
PageableHandlerMethodArgumentResolver
and MethodLinkBuilderFactory
.resolver
- can be null.linkBuilderFactory
- can be null, will be defaulted to a ControllerLinkBuilderFactory
.public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)
resolveArgument
in interface HandlerMethodArgumentResolver
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.