Class PersistentEntityResourceHandlerMethodArgumentResolver
java.lang.Object
org.springframework.data.rest.webmvc.config.PersistentEntityResourceHandlerMethodArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver
public class PersistentEntityResourceHandlerMethodArgumentResolver
extends Object
implements HandlerMethodArgumentResolver
Custom
HandlerMethodArgumentResolver
to create PersistentEntityResource
instances.- Author:
- Jon Brisbin, Oliver Gierke
-
Constructor Summary
ConstructorDescriptionPersistentEntityResourceHandlerMethodArgumentResolver
(List<HttpMessageConverter<?>> messageConverters, RootResourceInformationHandlerMethodArgumentResolver resourceInformationResolver, BackendIdHandlerMethodArgumentResolver idResolver, DomainObjectReader reader, org.springframework.plugin.core.PluginRegistry<EntityLookup<?>, Class<?>> lookups) -
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) boolean
supportsParameter
(MethodParameter parameter)
-
Constructor Details
-
PersistentEntityResourceHandlerMethodArgumentResolver
public PersistentEntityResourceHandlerMethodArgumentResolver(List<HttpMessageConverter<?>> messageConverters, RootResourceInformationHandlerMethodArgumentResolver resourceInformationResolver, BackendIdHandlerMethodArgumentResolver idResolver, DomainObjectReader reader, org.springframework.plugin.core.PluginRegistry<EntityLookup<?>, Class<?>> lookups)
-
-
Method Details
-
supportsParameter
- Specified by:
supportsParameter
in interfaceHandlerMethodArgumentResolver
-
resolveArgument
public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception - Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
- Throws:
Exception
-