Class EmbeddedResourcesAssembler
java.lang.Object
org.springframework.data.rest.webmvc.EmbeddedResourcesAssembler
- Author:
- Oliver Gierke
-
Constructor Summary
ConstructorDescriptionEmbeddedResourcesAssembler
(PersistentEntities entities, Associations associations, ExcerptProjector projector) -
Method Summary
Modifier and TypeMethodDescriptionIterable<org.springframework.hateoas.server.core.EmbeddedWrapper>
getEmbeddedResources
(Object instance) Returns the embedded resources to render.
-
Constructor Details
-
EmbeddedResourcesAssembler
public EmbeddedResourcesAssembler(PersistentEntities entities, Associations associations, ExcerptProjector projector)
-
-
Method Details
-
getEmbeddedResources
public Iterable<org.springframework.hateoas.server.core.EmbeddedWrapper> getEmbeddedResources(Object instance) Returns the embedded resources to render. This will add a projection for linkable associations if they have an excerpt projection registered.- Parameters:
instance
- must not be null.- Returns:
-