Author: mgrigorov
Date: Sun Jul 25 09:07:43 2010
New Revision: 979008

URL: http://svn.apache.org/viewvc?rev=979008&view=rev
Log:
WICKET-2956 WebApplication.onSessionDestroyed no longer invoked by anybody

Move the code of #sessionDestroyed(String) to #sessionUnbound(String).

An entry for this API change is added in the "migration to 1.5" wiki page too.


Modified:
    
wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/WebApplication.java

Modified: 
wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/WebApplication.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/WebApplication.java?rev=979008&r1=979007&r2=979008&view=diff
==============================================================================
--- 
wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/WebApplication.java
 (original)
+++ 
wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/WebApplication.java
 Sun Jul 25 09:07:43 2010
@@ -301,7 +301,8 @@ public abstract class WebApplication ext
         * @param bookmarkablePageClass
         *            the bookmarkable page class to mount
         * 
-        * @deprecated use mounted mapper instead, this method can be 
represented as {...@code
+        * @deprecated use mounted mapper instead, this method can be 
represented as
+        *             {...@code
         *             getRootRequestMapperAsCompound().add(new 
MountedMapper(path,
         *             bookmarkablePageClass))}
         */
@@ -358,13 +359,13 @@ public abstract class WebApplication ext
        }
 
        /**
-        * @param sessionId
-        *            The session id that was destroyed
-        * 
-        * @TODO This method is not called anymore by anybody
+        * @see org.apache.wicket.Application#sessionUnbound(java.lang.String)
         */
-       public void sessionDestroyed(String sessionId)
+       @Override
+       public void sessionUnbound(final String sessionId)
        {
+               super.sessionUnbound(sessionId);
+
                bufferedResponses.remove(sessionId);
 
                IRequestLogger logger = getRequestLogger();


Reply via email to