You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/02/06 09:52:00 UTC
[6/38] git commit: WICKET-4444 Add a callback to the Session which is
called when the HttpSession is invalidated
WICKET-4444 Add a callback to the Session which is called when the HttpSession is invalidated
Add a deprecated constructor that forwards to the new one.
Fixes Clirr error report
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/0ab3cb54
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/0ab3cb54
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/0ab3cb54
Branch: refs/heads/reference-guide
Commit: 0ab3cb5468d53b4e2479e2146b9bbe024a07d94d
Parents: afa176e
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Jan 28 10:26:33 2013 +0100
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Jan 28 10:26:33 2013 +0100
----------------------------------------------------------------------
.../apache/wicket/session/HttpSessionStore.java | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/0ab3cb54/wicket-core/src/main/java/org/apache/wicket/session/HttpSessionStore.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/session/HttpSessionStore.java b/wicket-core/src/main/java/org/apache/wicket/session/HttpSessionStore.java
index 976603b..c2631cf 100644
--- a/wicket-core/src/main/java/org/apache/wicket/session/HttpSessionStore.java
+++ b/wicket-core/src/main/java/org/apache/wicket/session/HttpSessionStore.java
@@ -422,10 +422,25 @@ public class HttpSessionStore implements ISessionStore
private final Session wicketSession;
/**
+ * Constructor.
+ *
+ * @param applicationKey
+ * The unique key of the application within this web application
+ * @deprecated Use #SessionBindingListener(String, Session) instead
+ */
+ @Deprecated
+ public SessionBindingListener(final String applicationKey)
+ {
+ this(applicationKey, Session.get());
+ }
+
+ /**
* Construct.
*
* @param applicationKey
* The unique key of the application within this web application
+ * @param wicketSession
+ * The Wicket Session associated with the expiring http session
*/
public SessionBindingListener(final String applicationKey, final Session wicketSession)
{