Annotation Type ResourceID

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.

Stéphane Épardaud

Copyright © 2010. All Rights Reserved.