Class ResourceMetadataHandlerMethodArgumentResolver
java.lang.Object
org.springframework.data.rest.webmvc.config.ResourceMetadataHandlerMethodArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class ResourceMetadataHandlerMethodArgumentResolver
extends Object
implements org.springframework.web.method.support.HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to create ResourceMetadata
instances.- Author:
- Jon Brisbin, Oliver Gierke, Jiacheng Yang
-
Constructor Summary
ConstructorDescriptionResourceMetadataHandlerMethodArgumentResolver
(org.springframework.data.repository.support.Repositories repositories, ResourceMappings mappings, BaseUri baseUri) Creates a newResourceMetadataHandlerMethodArgumentResolver
for the givenRepositories
andResourceMappings
. -
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory) boolean
supportsParameter
(org.springframework.core.MethodParameter parameter)
-
Constructor Details
-
ResourceMetadataHandlerMethodArgumentResolver
public ResourceMetadataHandlerMethodArgumentResolver(org.springframework.data.repository.support.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
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) - Specified by:
supportsParameter
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
-
resolveArgument
public ResourceMetadata resolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory) throws Exception - Specified by:
resolveArgument
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
- Throws:
Exception
-