
org.jboss.resteasy.links.ResourceIDs Maven / Gradle / Ivy
package org.jboss.resteasy.links;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* Defines an ordered list of bean properties that defines this resource's ID in
* URI templates.
*
*
* Suppose this resource can be accessed using the URI template /orders/{name}/{id}
,
* and your resource holds the two bean properties name
and id
, then your
* resource class should be annotated with {@link ResourceIDs @ResourceIDs({"name", "value"})}.
*
* @author Stéphane Épardaud
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ResourceIDs {
String[] value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy