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