Class ResourceMetadataHandlerMethodArgumentResolver
java.lang.Object
org.springframework.data.rest.webmvc.config.ResourceMetadataHandlerMethodArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver
public class ResourceMetadataHandlerMethodArgumentResolver
extends Object
implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to create ResourceMetadata
instances.- Author:
- Jon Brisbin, Oliver Gierke, Jiacheng Yang
-
Constructor Summary
ConstructorDescriptionResourceMetadataHandlerMethodArgumentResolver
(Repositories repositories, ResourceMappings mappings, BaseUri baseUri) Creates a newResourceMetadataHandlerMethodArgumentResolver
for the givenRepositories
andResourceMappings
. -
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) boolean
supportsParameter
(MethodParameter parameter)
-
Constructor Details
-
ResourceMetadataHandlerMethodArgumentResolver
public ResourceMetadataHandlerMethodArgumentResolver(Repositories repositories, ResourceMappings mappings, BaseUri baseUri) Creates a newResourceMetadataHandlerMethodArgumentResolver
for the givenRepositories
andResourceMappings
.- Parameters:
repositories
- must not be null.mappings
- must not be null.baseUri
- must not be null.
-
-
Method Details
-
supportsParameter
- Specified by:
supportsParameter
in interfaceHandlerMethodArgumentResolver
-
resolveArgument
public ResourceMetadata resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception - Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
- Throws:
Exception
-