001 package com.khubla.pragmatach.framework.annotation;
002
003 import java.lang.annotation.Documented;
004 import java.lang.annotation.ElementType;
005 import java.lang.annotation.Inherited;
006 import java.lang.annotation.Retention;
007 import java.lang.annotation.RetentionPolicy;
008 import java.lang.annotation.Target;
009
010 /**
011 * @author tome
012 */
013 @Documented
014 @Target({ ElementType.TYPE })
015 @Retention(RetentionPolicy.RUNTIME)
016 @Inherited
017 public @interface Controller {
018 public enum Scope {
019 session, request
020 };
021
022 String name() default "";
023
024 Scope scope() default Scope.request;
025 }