Interface MethodResourceMapping
- All Superinterfaces:
ResourceMapping
A
ResourceMapping
that is backed by a Method
.- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionReturns theMethod
backing the resource.ReturnsParameterMetadata
instances for all named parameters.Class<?>
Returns the domain type that the query method returns.boolean
Returns whether the resource is sortable.Methods inherited from interface org.springframework.data.rest.core.mapping.ResourceMapping
getDescription, getPath, getRel, isExported, isPagingResource
-
Method Details
-
getMethod
Method getMethod()Returns theMethod
backing the resource.- Returns:
-
getParametersMetadata
ParametersMetadata getParametersMetadata()ReturnsParameterMetadata
instances for all named parameters.- Returns:
-
isSortableResource
boolean isSortableResource()Returns whether the resource is sortable.- Returns:
-
getReturnedDomainType
Class<?> getReturnedDomainType()Returns the domain type that the query method returns. This will inspect wrapper types (Collection
s,Map
s,Optional
s etc.) for their element or value types.- Returns:
- will never be null.
- Since:
- 2.3
-