public class DefaultSelfLinkProvider extends Object implements SelfLinkProvider
EntityLinks instance to create self links. Considers
the configured EntityLookups to use the returned resource identifier to eventually create the link.| Constructor and Description |
|---|
DefaultSelfLinkProvider(org.springframework.data.mapping.context.PersistentEntities entities,
org.springframework.hateoas.EntityLinks entityLinks,
List<? extends EntityLookup<?>> lookups)
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.Link |
createSelfLinkFor(Object instance)
Returns the self link for the given entity instance.
|
public DefaultSelfLinkProvider(org.springframework.data.mapping.context.PersistentEntities entities,
org.springframework.hateoas.EntityLinks entityLinks,
List<? extends EntityLookup<?>> lookups)
entities - must not be null.entityLinks - must not be null.lookups - must not be null.public org.springframework.hateoas.Link createSelfLinkFor(Object instance)
SelfLinkProvidercreateSelfLinkFor in interface SelfLinkProviderinstance - must never be null.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.