public class PersistentEntityResourceAssembler<T> extends Object implements org.springframework.hateoas.ResourceAssembler<T,PersistentEntityResource<T>>
Constructor and Description |
---|
PersistentEntityResourceAssembler(Repositories repositories,
org.springframework.hateoas.EntityLinks entityLinks)
Creates a new
PersistentEntityResourceAssembler . |
Modifier and Type | Method and Description |
---|---|
org.springframework.hateoas.Link |
getSelfLinkFor(Object instance) |
PersistentEntityResource<T> |
toResource(T instance) |
public PersistentEntityResourceAssembler(Repositories repositories, org.springframework.hateoas.EntityLinks entityLinks)
PersistentEntityResourceAssembler
.repositories
- must not be null.entityLinks
- must not be null.public PersistentEntityResource<T> toResource(T instance)
toResource
in interface org.springframework.hateoas.ResourceAssembler<T,PersistentEntityResource<T>>
public org.springframework.hateoas.Link getSelfLinkFor(Object instance)
Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.