src/java/de/uapcore/lightpit/LightPITModule.java

changeset 7
598670d5b0b8
parent 6
da61a1646eba
child 10
89e3e6e28b69
equal deleted inserted replaced
6:da61a1646eba 7:598670d5b0b8
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 * 27 *
28 */ 28 */
29 package de.uapcore.lightpit; 29 package de.uapcore.lightpit;
30 30
31 import java.lang.annotation.Documented;
31 import java.lang.annotation.ElementType; 32 import java.lang.annotation.ElementType;
32 import java.lang.annotation.Retention; 33 import java.lang.annotation.Retention;
33 import java.lang.annotation.RetentionPolicy; 34 import java.lang.annotation.RetentionPolicy;
34 import java.lang.annotation.Target; 35 import java.lang.annotation.Target;
36 import javax.servlet.annotation.WebServlet;
35 37
36 38
37 /** 39 /**
38 * Contains information about a LightPIT module. 40 * Contains information about a LightPIT module.
41 *
42 * This annotation is typically used to annotate the {@link WebServlet} which
43 * implements the module's functionality.
39 */ 44 */
45 @Documented
40 @Retention(RetentionPolicy.RUNTIME) 46 @Retention(RetentionPolicy.RUNTIME)
41 @Target(ElementType.TYPE) 47 @Target(ElementType.TYPE)
42 public @interface LightPITModule { 48 public @interface LightPITModule {
49 /**
50 * Base name of the module specific resource bundle.
51 * @return a base name suitable for the JSTL tag 'setBundle'.
52 */
53 String bundleBaseName();
43 54
55 /**
56 * An array of required modules, identified by the string representation of
57 * their class names.
58 * @return an array of class names of required modules
59 */
60 String[] requires() default {};
44 } 61 }

mercurial