1.1 --- a/src/java/de/uapcore/lightpit/LightPITModule.java Sun Nov 26 18:09:23 2017 +0100 1.2 +++ b/src/java/de/uapcore/lightpit/LightPITModule.java Tue Nov 28 18:59:13 2017 +0100 1.3 @@ -28,17 +28,34 @@ 1.4 */ 1.5 package de.uapcore.lightpit; 1.6 1.7 +import java.lang.annotation.Documented; 1.8 import java.lang.annotation.ElementType; 1.9 import java.lang.annotation.Retention; 1.10 import java.lang.annotation.RetentionPolicy; 1.11 import java.lang.annotation.Target; 1.12 +import javax.servlet.annotation.WebServlet; 1.13 1.14 1.15 /** 1.16 * Contains information about a LightPIT module. 1.17 + * 1.18 + * This annotation is typically used to annotate the {@link WebServlet} which 1.19 + * implements the module's functionality. 1.20 */ 1.21 +@Documented 1.22 @Retention(RetentionPolicy.RUNTIME) 1.23 @Target(ElementType.TYPE) 1.24 public @interface LightPITModule { 1.25 + /** 1.26 + * Base name of the module specific resource bundle. 1.27 + * @return a base name suitable for the JSTL tag 'setBundle'. 1.28 + */ 1.29 + String bundleBaseName(); 1.30 1.31 + /** 1.32 + * An array of required modules, identified by the string representation of 1.33 + * their class names. 1.34 + * @return an array of class names of required modules 1.35 + */ 1.36 + String[] requires() default {}; 1.37 }