Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/context/SessionCallContextListener.java @ 310:6d2c8915e22c
Finalized the SessionCallContextListener and registered it as CallContext.Listener in the configuration.
flys-artifacts/trunk@1693 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 14 Apr 2011 13:11:12 +0000 |
parents | 084995dd1c9c |
children | 94c176fdcb89 |
comparison
equal
deleted
inserted
replaced
309:e91873b8b937 | 310:6d2c8915e22c |
---|---|
1 package de.intevation.flys.artifacts.context; | 1 package de.intevation.flys.artifacts.context; |
2 | 2 |
3 import org.apache.log4j.Logger; | 3 import org.apache.log4j.Logger; |
4 | |
5 import org.w3c.dom.Document; | |
6 import org.w3c.dom.Node; | |
4 | 7 |
5 import org.hibernate.Session; | 8 import org.hibernate.Session; |
6 | 9 |
7 import de.intevation.artifacts.CallContext; | 10 import de.intevation.artifacts.CallContext; |
8 import de.intevation.artifacts.CallContext.Listener; | 11 import de.intevation.artifacts.CallContext.Listener; |
24 private static Logger logger = | 27 private static Logger logger = |
25 Logger.getLogger(SessionCallContextListener.class); | 28 Logger.getLogger(SessionCallContextListener.class); |
26 | 29 |
27 | 30 |
28 public SessionCallContextListener() { | 31 public SessionCallContextListener() { |
32 } | |
33 | |
34 | |
35 public void setup(Document config, Node listenerConfig) { | |
36 // nothing to do here | |
29 } | 37 } |
30 | 38 |
31 | 39 |
32 /** | 40 /** |
33 * Initializes a ThreadLocal variable that is used to hold sessions. | 41 * Initializes a ThreadLocal variable that is used to hold sessions. |