uk.co.caeldev.spring.mvc.resources.DomainResourceAssemblerSupport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-mvc-utils Show documentation
Show all versions of spring-mvc-utils Show documentation
Library with severals classes that might help with your REST API
The newest version!
package uk.co.caeldev.spring.mvc.resources;
import org.springframework.hateoas.ResourceSupport;
import org.springframework.hateoas.mvc.ResourceAssemblerSupport;
public abstract class DomainResourceAssemblerSupport extends ResourceAssemblerSupport {
/**
* Creates a new {@link org.springframework.hateoas.mvc.ResourceAssemblerSupport} using the given controller class and resource type.
*
* @param controllerClass must not be {@literal null}.
* @param resourceType must not be {@literal null}.
*/
public DomainResourceAssemblerSupport(Class> controllerClass, Class resourceType) {
super(controllerClass, resourceType);
}
public abstract T toDomain(D resource, T domain);
}