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

org.jboss.resteasy.spi.touri.URITemplate Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package org.jboss.resteasy.spi.touri;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 

* This annotation can be added to any object to perform Java beans-based * transformation between URI template and bean properties. For example, take * the following bean: *

*

*

 * @URITemplate("/foo/{id}")
 * public class Foo
 * {
 *    private int id;
 *    // getters and setters
 * }
 * 
*

*

* for a Foo f with id = 123, ObjectToURI.getInstance(f) = "/foo/123" *

* * @author Solomon Duskis * @version $Revision: 1 $ */ @Target( {ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface URITemplate { String value(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy