Skip to content

Commit

Permalink
support to path attribute on Options annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrodrigo committed Oct 30, 2012
1 parent 6e78548 commit baa41dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions vraptor-core/src/main/java/br/com/caelum/vraptor/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};

}

Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ public void remove() {
public void head() {
}

@Path("/clients/options")
@Options
@Options("/clients/options")
public void options() {
}

Expand Down

0 comments on commit baa41dd

Please sign in to comment.