You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2010/10/13 19:22:36 UTC
svn commit: r1022199 -
/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/SecondLevelCacheSessionStore.java
Author: ivaynberg
Date: Wed Oct 13 17:22:36 2010
New Revision: 1022199
URL: http://svn.apache.org/viewvc?rev=1022199&view=rev
Log:
Make SecondLevelCacheSessionStore and its SecondLevelCachePageMap reusable
Issue: WICKET-3090
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/SecondLevelCacheSessionStore.java
Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/SecondLevelCacheSessionStore.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/SecondLevelCacheSessionStore.java?rev=1022199&r1=1022198&r2=1022199&view=diff
==============================================================================
--- wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/SecondLevelCacheSessionStore.java (original)
+++ wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/SecondLevelCacheSessionStore.java Wed Oct 13 17:22:36 2010
@@ -191,7 +191,7 @@ public class SecondLevelCacheSessionStor
/**
* Page map implementation for this session store.
*/
- private static final class SecondLevelCachePageMap extends PageMap
+ protected static final class SecondLevelCachePageMap extends PageMap
{
private static final long serialVersionUID = 1L;
@@ -218,7 +218,7 @@ public class SecondLevelCacheSessionStor
}
}
- private Page getLastPage()
+ protected Page getLastPage()
{
Page result = null;
if (lastPage instanceof Page)
@@ -236,7 +236,7 @@ public class SecondLevelCacheSessionStor
return result;
}
- private void setLastPage(Page lastPage)
+ protected void setLastPage(Page lastPage)
{
this.lastPage = lastPage;
}
@@ -361,7 +361,8 @@ public class SecondLevelCacheSessionStor
{
getStore().removePage(sessionId, getName(), entry.getNumericId());
}
- if (lastPage instanceof Page && ((Page) lastPage).getPageMapEntry() == entry) {
+ if (lastPage instanceof Page && ((Page)lastPage).getPageMapEntry() == entry)
+ {
lastPage = null;
}
}