001 package net.sf.tacos.rest;
002
003 import java.lang.annotation.Inherited;
004 import java.lang.annotation.Target;
005 import java.lang.annotation.Retention;
006 import java.lang.annotation.ElementType;
007 import java.lang.annotation.RetentionPolicy;
008
009 /**
010 * Identifies the URI path that a tapestry class will serve requests for.
011 */
012 @Inherited
013 @Target(value={ElementType.TYPE})
014 @Retention(value= RetentionPolicy.RUNTIME)
015 public @interface UriTemplate {
016 /** The path that will map to the annotated class. */
017 String value();
018
019 /** Alternative paths that will also map to the annotated class. */
020 String[] alias() default {};
021 }
022