Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/propertiesreader/ServletPropertiesReader.java @ 960:c3d628c2c4c3
Add more Javadocs
gnv/trunk@1104 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 18 May 2010 10:08:57 +0000 |
parents | 89ade245ca7a |
children | 28a0628b11b0 |
comparison
equal
deleted
inserted
replaced
959:0846c9c4abdd | 960:c3d628c2c4c3 |
---|---|
7 import javax.servlet.ServletConfig; | 7 import javax.servlet.ServletConfig; |
8 | 8 |
9 import org.apache.log4j.Logger; | 9 import org.apache.log4j.Logger; |
10 | 10 |
11 /** | 11 /** |
12 * This reader fetches the properties it will provide from the | |
13 * <code>ServletConfig</code> of an <code>Context</code>. | |
14 * It will read the InitParameters which could be configured using | |
15 * the <code>web.xml</code-file of each <code>context</code>. | |
16 * | |
12 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | 17 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> |
13 * | 18 * |
14 */ | 19 */ |
15 public class ServletPropertiesReader implements PropertiesReader { | 20 public class ServletPropertiesReader implements PropertiesReader { |
16 | 21 |
17 /** | 22 /** |
18 * the logger, used to log exceptions and additonaly information | 23 * the logger, used to log exceptions and additonaly information |
19 */ | 24 */ |
20 private static Logger log = Logger.getLogger(ServletPropertiesReader.class); | 25 private static Logger log = Logger.getLogger(ServletPropertiesReader.class); |
21 | 26 |
27 /** | |
28 * The properties which are read from the <code>ServletConfig</code>. | |
29 */ | |
22 private Map<String, String> properties = null; | 30 private Map<String, String> properties = null; |
23 | 31 |
24 /** | 32 /** |
25 * Constructor | 33 * Constructor |
34 * | |
35 * @param config the <code>ServletConfig</code> where | |
36 * the properties should be read from. | |
26 */ | 37 */ |
27 public ServletPropertiesReader(ServletConfig config) { | 38 public ServletPropertiesReader(ServletConfig config) { |
28 super(); | 39 super(); |
29 log.info("ServletPropertiesReader will be initialized"); | 40 log.info("ServletPropertiesReader will be initialized"); |
30 if (config != null) { | 41 if (config != null) { |