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

au.com.mountainpass.hyperstate.server.entities.HyperstateRootEntity Maven / Gradle / Ivy

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 controllerClass) {
        super(repository,
                AnnotationUtils
                        .findAnnotation(controllerClass, RequestMapping.class)
                        .value()[0],
                controllerClass.getSimpleName(),
                HyperstateRootEntity.class.getSimpleName());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy