Interface MethodResourceMapping

All Superinterfaces:
ResourceMapping

public interface MethodResourceMapping extends ResourceMapping
A ResourceMapping that is backed by a Method.
Author:
Oliver Gierke
  • Method Details

    • getMethod

      Method getMethod()
      Returns the Method backing the resource.
      Returns:
    • getParametersMetadata

      ParametersMetadata getParametersMetadata()
      Returns ParameterMetadata 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 (Collections, Maps, Optionals etc.) for their element or value types.
      Returns:
      will never be null.
      Since:
      2.3