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