Class PersistentEntityResourceHandlerMethodArgumentResolver
java.lang.Object
org.springframework.data.rest.webmvc.config.PersistentEntityResourceHandlerMethodArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class PersistentEntityResourceHandlerMethodArgumentResolver
extends Object
implements org.springframework.web.method.support.HandlerMethodArgumentResolver
Custom
HandlerMethodArgumentResolver
to create PersistentEntityResource
instances.- Author:
- Jon Brisbin, Oliver Gierke
-
Constructor Summary
ConstructorDescriptionPersistentEntityResourceHandlerMethodArgumentResolver
(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters, RootResourceInformationHandlerMethodArgumentResolver resourceInformationResolver, BackendIdHandlerMethodArgumentResolver idResolver, DomainObjectReader reader, org.springframework.plugin.core.PluginRegistry<EntityLookup<?>, Class<?>> lookups, BindContextFactory factory) -
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
-
PersistentEntityResourceHandlerMethodArgumentResolver
public PersistentEntityResourceHandlerMethodArgumentResolver(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters, RootResourceInformationHandlerMethodArgumentResolver resourceInformationResolver, BackendIdHandlerMethodArgumentResolver idResolver, DomainObjectReader reader, org.springframework.plugin.core.PluginRegistry<EntityLookup<?>, Class<?>> lookups, BindContextFactory factory)
-
-
Method Details
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) - Specified by:
supportsParameter
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
-
resolveArgument
public Object 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
-