changeset 982:66b3f2f064de

Added the datacage as lifetime listener to the artifact database to create the initial index. flys-artifacts/trunk@2411 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 27 Jul 2011 14:04:03 +0000
parents 799c7108ea6d
children 4ea5f5a2284e
files flys-artifacts/ChangeLog flys-artifacts/doc/conf/conf.xml flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java
diffstat 3 files changed, 47 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Jul 27 11:01:55 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Jul 27 14:04:03 2011 +0000
@@ -1,3 +1,12 @@
+2011-07-27  Sascha L. Teichmann <sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java:
+	  New. A artifact database lifetime listener to build the initial
+	  index of the artifacts in database.
+
+	* doc/conf/conf.xml: Added the datacage to the list of lifetime
+	  listeners.
+
 2011-07-27  Sascha L. Teichmann <sascha.teichmann@intevation.de>
 
 	* doc/conf/datacage.sql: Added an explicit table for the outs
--- a/flys-artifacts/doc/conf/conf.xml	Wed Jul 27 11:01:55 2011 +0000
+++ b/flys-artifacts/doc/conf/conf.xml	Wed Jul 27 14:04:03 2011 +0000
@@ -46,6 +46,10 @@
 
     </factories>
 
+    <lifetime-listeners>
+        <listener>de.intevation.flys.artifacts.datacage.Datacage</listener>
+    </lifetime-listeners>
+
     <callcontext-listener
         name="SessionCallContextListener"
         description="A CallContext.Listener to open and close Hibernatesessions">de.intevation.flys.artifacts.context.SessionCallContextListener</callcontext-listener>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java	Wed Jul 27 14:04:03 2011 +0000
@@ -0,0 +1,34 @@
+package de.intevation.flys.artifacts.datacage;
+
+import de.intevation.artifacts.GlobalContext;
+
+import de.intevation.artifactdatabase.LifetimeListener;
+
+import org.apache.log4j.Logger;
+
+import org.w3c.dom.Document;
+
+public class Datacage
+implements   LifetimeListener
+{
+    private static Logger log = Logger.getLogger(Datacage.class);
+
+    public Datacage() {
+    }
+
+    @Override
+    public void setup(Document document) {
+        log.debug("setup");
+    }
+
+    @Override
+    public void systemUp(GlobalContext context) {
+        log.debug("systemUp");
+    }
+
+    @Override
+    public void systemDown(GlobalContext context) {
+        log.debug("systemDown");
+    }
+}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org