changeset 3477:2c63994ceffb

Add servlet context parameters and load FeaturesServletContextListener flys-client/trunk@5172 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Wed, 08 Aug 2012 12:56:25 +0000
parents 4a6321dd5186
children 763789a9acca
files flys-client/ChangeLog flys-client/src/main/webapp/WEB-INF/web.xml
diffstat 2 files changed, 34 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Aug 08 12:51:18 2012 +0000
+++ b/flys-client/ChangeLog	Wed Aug 08 12:56:25 2012 +0000
@@ -1,3 +1,22 @@
+2012-08-08	Björn Ricks <bjoern.ricks@intevation.de>
+	  * src/main/java/de/intevation/flys/client/server/features/FeatureServletContextListener.java,
+	   src/main/webapp/WEB-INF/web.xml:
+	   Implement a ServletContextListener to initialize the Fearures from a xml
+	   file. With the context parameter "features-file" in src/main/webapp/WEB-INF/web.xml
+	   a xml file to load features from can be specified.
+	   The FeatureServletContextListener class also initializes the logging now
+	   because it is loaded before the BaseServlet.
+
+2012-08-08	Björn Ricks <bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/server/features/XMLFileFeatures.java,
+	  src/main/java/de/intevation/flys/client/server/features/FeaturesNamespaceContext.java,
+	  src/main/java/de/intevation/flys/client/server/features/Features.java,
+	  src/main/webapp/WEB-INF/features.xml:
+	  Implementation of a feature representation. The XMLFileFeatures class can
+	  be used to load a feature xml file (src/main/webapp/WEB-INF/features.xml)
+	  and create a map of roles to a list of features.
+
 2012-08-08	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/server/meta/Converter.java:
--- a/flys-client/src/main/webapp/WEB-INF/web.xml	Wed Aug 08 12:51:18 2012 +0000
+++ b/flys-client/src/main/webapp/WEB-INF/web.xml	Wed Aug 08 12:56:25 2012 +0000
@@ -15,6 +15,21 @@
         <param-value>GGInA</param-value>
     </context-param>
 
+    <context-param>
+        <param-name>features-file</param-name>
+        <param-value>/WEB-INF/features.xml</param-value>
+    </context-param>
+
+    <context-param>
+        <param-name>log4j-properties</param-name>
+        <param-value>/WEB-INF/log4j.properties</param-value>
+    </context-param>
+
+    <listener>
+        <listener-class>de.intevation.flys.client.server.features.FeatureServletContextListener</listener-class>
+    </listener>
+
+
   <!-- Servlets -->
   <servlet>
     <servlet-name>BaseServlet</servlet-name>

http://dive4elements.wald.intevation.org