org.apache.wicket.session.pagemap
Interface IPageMapEntry

All Superinterfaces:
IClusterable, java.io.Serializable
All Known Implementing Classes:
AbstractPageMapEntry, AccessDeniedPage, BrowserInfoPage, DummyHomePage, DummyPanelPage, ExceptionErrorPage, InternalErrorPage, Page, PageExpiredErrorPage, PopupCloseLink.ClosePopupPage, RedirectPage, WebPage

public interface IPageMapEntry
extends IClusterable

Some source which produces a page. Page implements IPageMapEntry by simply returning "this", but other implementations are possible as well, allowing users to create IPageMapEntry implementations that reconstruct full blown Page objects from a limited set of data (for example, a details page from an id). The advantage of doing this is that you can save session memory (by trading off against the processing power required to reconstruct the page).

Author:
Jonathan Locke
See Also:
AbstractPageMapEntry

Method Summary
 int getNumericId()
           
 Page getPage()
           
 java.lang.Class getPageClass()
           
 void setNumericId(int id)
           
 

Method Detail

getNumericId

int getNumericId()
Returns:
A stable identifier for this page map entry

getPage

Page getPage()
Returns:
Gets the page, possibly creating it on the fly.

getPageClass

java.lang.Class getPageClass()
Returns:
The class of page stored in this page map entry (which can be used by an eviction strategy to prioritize evictions)

setNumericId

void setNumericId(int id)
Parameters:
id - The numeric id for this entry


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.