public class PersistentEntityResourceAssembler extends Object implements org.springframework.hateoas.ResourceAssembler<Object,PersistentEntityResource<Object>>
ResourceAssembler to create PersistentEntityResources for arbitrary domain objects.| Constructor and Description |
|---|
PersistentEntityResourceAssembler(Repositories repositories,
org.springframework.hateoas.EntityLinks entityLinks,
Projector projector)
Creates a new
PersistentEntityResourceAssembler. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.Link |
getSelfLinkFor(Object instance)
Creates the self link for the given domain instance.
|
PersistentEntityResource<Object> |
toResource(Object instance) |
public PersistentEntityResourceAssembler(Repositories repositories, org.springframework.hateoas.EntityLinks entityLinks, Projector projector)
PersistentEntityResourceAssembler.repositories - must not be null.entityLinks - must not be null.projections - must not be null.public PersistentEntityResource<Object> toResource(Object instance)
toResource in interface org.springframework.hateoas.ResourceAssembler<Object,PersistentEntityResource<Object>>public org.springframework.hateoas.Link getSelfLinkFor(Object instance)
instance - must be a managed entity, not null.Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.