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

org.uqbar.xtrest.api.annotation.Controller Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package org.uqbar.xtrest.api.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.eclipse.xtend.lib.macro.Active;
import org.uqbar.xtrest.api.ControllerAnnotationProcessor;

/**
 * Marks a given class as being an HTTP controller.
 * Controllers are objects whose methods handle http requests.
 * 
 * XtRest knows which method to call for a given request
 * also based on method's annotations.
 * 
 * There's an annotation for each HTTP verb (or method):
 * 
 * @link Get
 * @link Post
 * @link Put
 * @link Delete
 * 
 * @author jfernandes
 */
@Active(ControllerAnnotationProcessor.class)
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Controller {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy