1 package net.sf.tacos.rest;
2
3 import java.lang.annotation.Inherited;
4 import java.lang.annotation.Target;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.ElementType;
7 import java.lang.annotation.RetentionPolicy;
8
9 /**
10 * Identifies the URI path that a tapestry class will serve requests for.
11 */
12 @Inherited
13 @Target(value={ElementType.TYPE})
14 @Retention(value= RetentionPolicy.RUNTIME)
15 public @interface UriTemplate {
16 /** The path that will map to the annotated class. */
17 String value();
18
19 /** Alternative paths that will also map to the annotated class. */
20 String[] alias() default {};
21 }
22