public class RootResourceInformationHandlerMethodArgumentResolver extends Object implements org.springframework.web.method.support.HandlerMethodArgumentResolver
HandlerMethodArgumentResolver to create RootResourceInformation for injection into Spring MVC
controller methods.| Constructor and Description |
|---|
RootResourceInformationHandlerMethodArgumentResolver(org.springframework.data.repository.support.Repositories repositories,
org.springframework.data.repository.support.RepositoryInvokerFactory invokerFactory,
ResourceMetadataHandlerMethodArgumentResolver resourceMetadataResolver)
Creates a new
RootResourceInformationHandlerMethodArgumentResolver using the given Repositories,
RepositoryInvokerFactory and ResourceMetadataHandlerMethodArgumentResolver. |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.data.repository.support.RepositoryInvoker |
postProcess(org.springframework.core.MethodParameter parameter,
org.springframework.data.repository.support.RepositoryInvoker invoker,
Class<?> domainType,
Map<String,String[]> parameters)
Potentially customize the given
RepositoryInvoker for the given domain type. |
RootResourceInformation |
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) |
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter) |
public RootResourceInformationHandlerMethodArgumentResolver(org.springframework.data.repository.support.Repositories repositories,
org.springframework.data.repository.support.RepositoryInvokerFactory invokerFactory,
ResourceMetadataHandlerMethodArgumentResolver resourceMetadataResolver)
RootResourceInformationHandlerMethodArgumentResolver using the given Repositories,
RepositoryInvokerFactory and ResourceMetadataHandlerMethodArgumentResolver.repositories - must not be null.invokerFactory - must not be null.resourceMetadataResolver - must not be null.public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
supportsParameter in interface org.springframework.web.method.support.HandlerMethodArgumentResolverpublic RootResourceInformation 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
resolveArgument in interface org.springframework.web.method.support.HandlerMethodArgumentResolverExceptionprotected org.springframework.data.repository.support.RepositoryInvoker postProcess(org.springframework.core.MethodParameter parameter,
org.springframework.data.repository.support.RepositoryInvoker invoker,
Class<?> domainType,
Map<String,String[]> parameters)
RepositoryInvoker for the given domain type. Default implementations simply
returns the given invoker as is.parameter - must not be null.invoker - will never be null.domainType - will never be null.parameters - will never be null.RepositoryInvoker.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.