@Order(value=-2147483639) public class RepositoryRelProvider extends Object implements org.springframework.hateoas.server.LinkRelationProvider
LinkRelationProvider based on the ResourceMappings for the registered repositories.| Constructor and Description |
|---|
RepositoryRelProvider(ObjectFactory<ResourceMappings> mappings)
Creates a new
RepositoryRelProvider for the given ResourceMappings. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.LinkRelation |
getCollectionResourceRelFor(Class<?> type) |
org.springframework.hateoas.LinkRelation |
getItemResourceRelFor(Class<?> type) |
boolean |
supports(org.springframework.hateoas.server.LinkRelationProvider.LookupContext context) |
public RepositoryRelProvider(ObjectFactory<ResourceMappings> mappings)
RepositoryRelProvider for the given ResourceMappings.mappings - must not be null.public org.springframework.hateoas.LinkRelation getCollectionResourceRelFor(Class<?> type)
getCollectionResourceRelFor in interface org.springframework.hateoas.server.LinkRelationProviderpublic org.springframework.hateoas.LinkRelation getItemResourceRelFor(Class<?> type)
getItemResourceRelFor in interface org.springframework.hateoas.server.LinkRelationProviderpublic boolean supports(org.springframework.hateoas.server.LinkRelationProvider.LookupContext context)
supports in interface org.springframework.hateoas.server.LinkRelationProvidersupports in interface org.springframework.plugin.core.Plugin<org.springframework.hateoas.server.LinkRelationProvider.LookupContext>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.