Class RepositoryRelProvider
java.lang.Object
org.springframework.data.rest.core.support.RepositoryRelProvider
- All Implemented Interfaces:
LinkRelationProvider,org.springframework.plugin.core.Plugin<LinkRelationProvider.LookupContext>
@Order(2147483637)
public class RepositoryRelProvider
extends Object
implements LinkRelationProvider
A
LinkRelationProvider based on the ResourceMappings for the registered repositories.- Author:
- Oliver Gierke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.hateoas.server.LinkRelationProvider
LinkRelationProvider.LookupContext -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryRelProvider(ObjectFactory<ResourceMappings> mappings) Creates a newRepositoryRelProviderfor the givenResourceMappings. -
Method Summary
Modifier and TypeMethodDescriptiongetCollectionResourceRelFor(Class<?> type) getItemResourceRelFor(Class<?> type) boolean
-
Constructor Details
-
RepositoryRelProvider
Creates a newRepositoryRelProviderfor the givenResourceMappings.- Parameters:
mappings- must not be null.
-
-
Method Details
-
getCollectionResourceRelFor
- Specified by:
getCollectionResourceRelForin interfaceLinkRelationProvider
-
getItemResourceRelFor
- Specified by:
getItemResourceRelForin interfaceLinkRelationProvider
-
supports
- Specified by:
supportsin interfaceLinkRelationProvider- Specified by:
supportsin interfaceorg.springframework.plugin.core.Plugin<LinkRelationProvider.LookupContext>
-