au.com.mountainpass.hyperstate.server.entities.HyperstateRootEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hyperstate-server Show documentation
Show all versions of hyperstate-server Show documentation
A Hypermedia as the Engine of Application State (HATEOAS) library
The newest version!
package au.com.mountainpass.hyperstate.server.entities;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import au.com.mountainpass.hyperstate.core.EntityRepository;
import au.com.mountainpass.hyperstate.core.entities.VanillaEntity;
import au.com.mountainpass.hyperstate.server.HyperstateController;
public class HyperstateRootEntity extends VanillaEntity {
protected HyperstateRootEntity() {
}
public HyperstateRootEntity(EntityRepository repository,
final Class extends HyperstateController> controllerClass) {
super(repository,
AnnotationUtils
.findAnnotation(controllerClass, RequestMapping.class)
.value()[0],
controllerClass.getSimpleName(),
HyperstateRootEntity.class.getSimpleName());
}
}