# HG changeset patch # User Sascha L. Teichmann # Date 1302780243 0 # Node ID 3a1209f214f58ca5bf3f9fdaa76d01a6268373d6 # Parent a8a06bbe306c51424a6bec4937342a50b39c4eae Added instance variable to hold a call context listener. artifacts/trunk@1688 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r a8a06bbe306c -r 3a1209f214f5 ChangeLog --- 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 + + * 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 * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java: diff -r a8a06bbe306c -r 3a1209f214f5 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 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 :