public class ShallowMetricResourceAssembler<M extends Metric> extends org.springframework.hateoas.mvc.ResourceAssemblerSupport<M,MetricResource>
ResourceAssembler
that builds shallow resources for metrics (exposing only their names, and
hence their "self" rel).Constructor and Description |
---|
ShallowMetricResourceAssembler(java.lang.Class<?> controllerClass) |
Modifier and Type | Method and Description |
---|---|
protected MetricResource |
instantiateResource(M entity) |
MetricResource |
toResource(M entity) |
public ShallowMetricResourceAssembler(java.lang.Class<?> controllerClass)
public MetricResource toResource(M entity)
protected MetricResource instantiateResource(M entity)
instantiateResource
in class org.springframework.hateoas.mvc.ResourceAssemblerSupport<M extends Metric,MetricResource>