Spring Hateoas

org.springframework.hateoas
Interface ResourceAssembler<T,D extends ResourceSupport>

All Known Implementing Classes:
IdentifiableResourceAssemblerSupport, ResourceAssemblerSupport

public interface ResourceAssembler<T,D extends ResourceSupport>

Interface for components that convert a domain type into an ResourceSupport.

Author:
Oliver Gierke

Method Summary
 D toResource(T entity)
          Converts the given entity into an ResourceSupport.
 

Method Detail

toResource

D toResource(T entity)
Converts the given entity into an ResourceSupport.

Parameters:
entity -
Returns:

Spring Hateoas

Copyright © 2012-2014-2014 Pivotal, Inc.. All Rights Reserved.