View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2012-2-27 下午04:02:57
4    */
5   package gboat2.base.core.annotation;
6   
7   import java.lang.annotation.ElementType;
8   import java.lang.annotation.Retention;
9   import java.lang.annotation.RetentionPolicy;
10  import java.lang.annotation.Target;
11  
12  /**
13   * 当一个Action类配置成多个模块时,每个模块都需对于自己的附件,如:
14   * <pre>
15   * <code>&#064;Attachments( { 
16   *  &#064;Attachment(attachName = "模块1附件", targetCode = "CODE1",code="attachCode1"), 
17   *  &#064;Attachment(attachName = "模块2附件", targetCode = "CODE2",code="attachCode2")
18   * })
19   * public class PreferenceAction extends BaseActionSupport {
20   * 	...
21   * }
22   * </code></pre>
23   * @author sunpf
24   * @since 3.0
25   * @see Attach
26   * @date 2013-3-14
27   */
28  @Retention(RetentionPolicy.RUNTIME)
29  @Target(ElementType.TYPE)
30  public @interface Attachs {
31      public Attach[] value();
32  }