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 Details

    • ResourceMetadataHandlerMethodArgumentResolver

      public ResourceMetadataHandlerMethodArgumentResolver(org.springframework.data.repository.support.Repositories repositories, ResourceMappings mappings, BaseUri baseUri)
      Creates a new ResourceMetadataHandlerMethodArgumentResolver for the given Repositories and ResourceMappings.
      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 interface org.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 interface org.springframework.web.method.support.HandlerMethodArgumentResolver
      Throws:
      Exception