org.jboss.resteasy.links
Annotation Type ResourceID


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface ResourceID

Marks this property as this resource's ID in URI templates.

Suppose this resource can be accessed using the URI template /orders/{name}, and your resource holds the name bean property, then your name property should be annotated with @ResourceID.

Author:
Stéphane Épardaud



Copyright © 2010. All Rights Reserved.