T - the type of the object to convert
D - the type of the resource
public interface ResourceAssembler<T,D>
The object to convert can be any type, but typically this will be a domain object widely used by the application.
The resource should be a type that is only used in the REST layer of the application and which represents the data to be send to the consumer. This is typically a POJO containing Jackson annotations if needed.