Mercurial > dive4elements > framework
changeset 247:3a1209f214f5
Added instance variable to hold a call context listener.
artifacts/trunk@1688 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 14 Apr 2011 11:24:03 +0000 |
parents | a8a06bbe306c |
children | eafe59ecfb7e |
files | ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java |
diffstat | 2 files changed, 25 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Apr 14 11:18:10 2011 +0000 +++ b/ChangeLog Thu Apr 14 11:24:03 2011 +0000 @@ -1,3 +1,8 @@ +2011-04-14 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java: + Added instance variable to hold a call context listener. + 2011-04-14 Sascha L. Teichmann <sascha.teichmann@intevation.de> * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java Thu Apr 14 11:18:10 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java Thu Apr 14 11:24:03 2011 +0000 @@ -397,6 +397,8 @@ */ protected HashSet<Integer> backgroundIds; + protected CallContext.Listener callContextListener; + /** * Default constructor. */ @@ -435,6 +437,16 @@ wireWithBackend(backend); } + public CallContext.Listener getCallContextListener() { + return callContextListener; + } + + public void setCallContextListener( + CallContext.Listener callContextListener + ) { + this.callContextListener = callContextListener; + } + /** * Used to extract the artifact collection factory from bootstrap. * @@ -1445,11 +1457,17 @@ } protected void initCallContext(CallContext cc) { - logger.info("Implement me!"); + logger.debug("initCallContext"); + if (callContextListener != null) { + callContextListener.init(cc); + } } protected void closeCallContext(CallContext cc) { - logger.info("Implement me!"); + logger.debug("closeCallContext"); + if (callContextListener != null) { + callContextListener.close(cc); + } } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :