why not rename IPageMap to IPageStore and just chain these. you can have

SessionPageStore(SoftRefPageStore(DiskPageStore))

-igor


On 1/9/07, Johan Compagner <[EMAIL PROTECTED]> wrote:

>
> PagePersistingSessionStore?


thats also a wrong name because if i would do this:

/**
     * @see wicket.Application#newSessionStore()
     */
    protected ISessionStore newSessionStore()
    {
        return new SecondLevelCacheSessionStore(new IPageStore()
       {
                  /// default empty, does nothing, implementation....
       });
    }


then pages wouldn't be persisted anywhere except in a soft reference
cache.
So back button works as long as the jvm didn't clear the soft references.

So we have

PageMap (holds a strong reference to the last/active page) ->
SecondLevelCache (soft reference to older pages) -> IPageStore (the actual
persistent store what ever that is (file/db))

johan


Reply via email to