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

changeset 7
598670d5b0b8
parent 6
da61a1646eba
child 10
89e3e6e28b69
--- a/src/java/de/uapcore/lightpit/LightPITModule.java	Sun Nov 26 18:09:23 2017 +0100
+++ b/src/java/de/uapcore/lightpit/LightPITModule.java	Tue Nov 28 18:59:13 2017 +0100
@@ -28,17 +28,34 @@
  */
 package de.uapcore.lightpit;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
+import javax.servlet.annotation.WebServlet;
 
 
 /**
  * Contains information about a LightPIT module.
+ * 
+ * This annotation is typically used to annotate the {@link WebServlet} which
+ * implements the module's functionality.
  */
+@Documented
 @Retention(RetentionPolicy.RUNTIME)
 @Target(ElementType.TYPE)
 public @interface LightPITModule {
+    /**
+     * Base name of the module specific resource bundle.
+     * @return a base name suitable for the JSTL tag 'setBundle'.
+     */
+    String bundleBaseName();
     
+    /**
+     * An array of required modules, identified by the string representation of
+     * their class names.
+     * @return an array of class names of required modules
+     */
+    String[] requires() default {};
 }

mercurial