public class BackendIdHandlerMethodArgumentResolver extends Object implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to resolve entity ids for injection int handler method arguments annotated with
BackendId
.Constructor and Description |
---|
BackendIdHandlerMethodArgumentResolver(org.springframework.plugin.core.PluginRegistry<BackendIdConverter,Class<?>> idConverters,
ResourceMetadataHandlerMethodArgumentResolver resourceMetadataResolver,
BaseUri baseUri)
Creates a new
BackendIdHandlerMethodArgumentResolver for the given BackendIdConverter s and
ResourceMetadataHandlerMethodArgumentResolver . |
Modifier and Type | Method and Description |
---|---|
Serializable |
resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest request,
WebDataBinderFactory binderFactory) |
boolean |
supportsParameter(MethodParameter parameter) |
public BackendIdHandlerMethodArgumentResolver(org.springframework.plugin.core.PluginRegistry<BackendIdConverter,Class<?>> idConverters, ResourceMetadataHandlerMethodArgumentResolver resourceMetadataResolver, BaseUri baseUri)
BackendIdHandlerMethodArgumentResolver
for the given BackendIdConverter
s and
ResourceMetadataHandlerMethodArgumentResolver
.idConverters
- the BackendIdConverter
s registered in the system, must not be null..resourceMetadataResolver
- the resolver to obtain ResourceMetadata
from, must not be null.baseUri
- must not be null.public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public Serializable resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request, WebDataBinderFactory binderFactory) throws Exception
resolveArgument
in interface HandlerMethodArgumentResolver
Exception
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.