Class RepositoryRelProvider
java.lang.Object
org.springframework.data.rest.core.support.RepositoryRelProvider
- All Implemented Interfaces:
LinkRelationProvider
,org.springframework.plugin.core.Plugin<LinkRelationProvider.LookupContext>
@Order(-2147483639)
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
ConstructorDescriptionRepositoryRelProvider
(ObjectFactory<ResourceMappings> mappings) Creates a newRepositoryRelProvider
for the givenResourceMappings
. -
Method Summary
Modifier and TypeMethodDescriptiongetCollectionResourceRelFor
(Class<?> type) getItemResourceRelFor
(Class<?> type) boolean
-
Constructor Details
-
RepositoryRelProvider
Creates a newRepositoryRelProvider
for the givenResourceMappings
.- Parameters:
mappings
- must not be null.
-
-
Method Details
-
getCollectionResourceRelFor
- Specified by:
getCollectionResourceRelFor
in interfaceLinkRelationProvider
-
getItemResourceRelFor
- Specified by:
getItemResourceRelFor
in interfaceLinkRelationProvider
-
supports
- Specified by:
supports
in interfaceLinkRelationProvider
- Specified by:
supports
in interfaceorg.springframework.plugin.core.Plugin<LinkRelationProvider.LookupContext>
-