All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.co.caeldev.spring.mvc.resources.DomainResourceAssemblerSupport Maven / Gradle / Ivy

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy