public class ResourceMetadataHandlerMethodArgumentResolver extends Object implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to create ResourceMetadata
instances.Constructor and Description |
---|
ResourceMetadataHandlerMethodArgumentResolver(Repositories repositories,
ResourceMappings mappings,
BaseUri baseUri)
Creates a new
ResourceMetadataHandlerMethodArgumentResolver for the given Repositories and
ResourceMappings . |
Modifier and Type | Method and Description |
---|---|
ResourceMetadata |
resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
boolean |
supportsParameter(MethodParameter parameter) |
public ResourceMetadataHandlerMethodArgumentResolver(Repositories repositories, ResourceMappings mappings, BaseUri baseUri)
ResourceMetadataHandlerMethodArgumentResolver
for the given Repositories
and
ResourceMappings
.repositories
- must not be null.mappings
- must not be null.baseUri
- must not be null.public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public ResourceMetadata resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception
resolveArgument
in interface HandlerMethodArgumentResolver
Exception
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.