Class RepositoryRelProvider

java.lang.Object
org.springframework.data.rest.core.support.RepositoryRelProvider
All Implemented Interfaces:
org.springframework.hateoas.server.LinkRelationProvider, org.springframework.plugin.core.Plugin<org.springframework.hateoas.server.LinkRelationProvider.LookupContext>

@Order(-2147483639) public class RepositoryRelProvider extends Object implements org.springframework.hateoas.server.LinkRelationProvider
A LinkRelationProvider based on the ResourceMappings for the registered repositories.
Author:
Oliver Gierke
  • Constructor Details

  • Method Details

    • getCollectionResourceRelFor

      public org.springframework.hateoas.LinkRelation getCollectionResourceRelFor(Class<?> type)
      Specified by:
      getCollectionResourceRelFor in interface org.springframework.hateoas.server.LinkRelationProvider
    • getItemResourceRelFor

      public org.springframework.hateoas.LinkRelation getItemResourceRelFor(Class<?> type)
      Specified by:
      getItemResourceRelFor in interface org.springframework.hateoas.server.LinkRelationProvider
    • supports

      public boolean supports(org.springframework.hateoas.server.LinkRelationProvider.LookupContext context)
      Specified by:
      supports in interface org.springframework.hateoas.server.LinkRelationProvider
      Specified by:
      supports in interface org.springframework.plugin.core.Plugin<org.springframework.hateoas.server.LinkRelationProvider.LookupContext>