Permalink
Browse files

support to path attribute on Options annotation

  • Loading branch information...
1 parent 6e78548 commit baa41ddde91aafa34e15e744d982f85e5f0fe5b6 @douglasrodrigo douglasrodrigo committed Oct 30, 2012
@@ -32,5 +32,12 @@
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface Options {
+
+ /**
+ * All paths that will be mapped to an annotated Resource method.
+ * @return
+ */
+ String[] value() default {};
+
}
@@ -330,8 +330,7 @@ public void remove() {
public void head() {
}
- @Path("/clients/options")
- @Options
+ @Options("/clients/options")
public void options() {
}

0 comments on commit baa41dd

Please sign in to comment.