KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > madvoc > meta > In


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package jodd.madvoc.meta;
4
5 import jodd.madvoc.interceptor.ScopeType;
6
7 import java.lang.annotation.*;
8
9 /**
10  * Marks a field where injection should be performed.
11  */

12 @Documented
13 @Retention(value = RetentionPolicy.RUNTIME)
14 @Target(ElementType.FIELD)
15 public @interface In {
16
17     /**
18      * Specifies if fields should be created if not found.
19      */

20     public boolean create() default true;
21
22     /**
23      * Specifies parameter scope.
24      */

25     public ScopeType scope() default ScopeType.PARAM;
26
27     /**
28      * Specifies non-default parameter name.
29      */

30     public String JavaDoc value() default "";
31
32 }
Popular Tags