Package org.apache.wicket.pageStore
Class NoopPageStore
- java.lang.Object
-
- org.apache.wicket.pageStore.NoopPageStore
-
- All Implemented Interfaces:
IPageStore
public class NoopPageStore extends Object implements IPageStore
A non-storage of pages.
-
-
Constructor Summary
Constructors Constructor Description NoopPageStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPage(IPageContext context, IManageablePage page)
Stores the page-boolean
canBeAsynchronous(IPageContext context)
This method is called byAsynchronousPageStore
before any attempt to callIPageStore.addPage(IPageContext, IManageablePage)
asynchronously.IManageablePage
getPage(IPageContext context, int id)
Restores a page from storage.void
removeAllPages(IPageContext context)
All pages should be removed from storage for the given context.void
removePage(IPageContext context, IManageablePage page)
Removes a page from storage.boolean
supportsVersioning()
Is versioning of pages supported, i.e.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.pageStore.IPageStore
destroy, detach, end, revertPage
-
-
-
-
Constructor Detail
-
NoopPageStore
public NoopPageStore()
-
-
Method Detail
-
supportsVersioning
public boolean supportsVersioning()
Description copied from interface:IPageStore
Is versioning of pages supported, i.e. when an altered page instance has been stored in this store, can the previous state of that page still be retrieved under its former page id. Most implementations achieve this by keeping a copy of the page instance, e.g. by means of serialization.- Specified by:
supportsVersioning
in interfaceIPageStore
-
canBeAsynchronous
public boolean canBeAsynchronous(IPageContext context)
Description copied from interface:IPageStore
This method is called byAsynchronousPageStore
before any attempt to callIPageStore.addPage(IPageContext, IManageablePage)
asynchronously.A page store returning
true
must immediately access all required values from the context, since no additional values can be accessed whenIPageStore.addPage(IPageContext, IManageablePage)
is called asynchronously afterwards.- Specified by:
canBeAsynchronous
in interfaceIPageStore
- Returns:
- whether
IPageStore.addPage(IPageContext, IManageablePage)
may be called asynchronously, default isfalse
-
addPage
public void addPage(IPageContext context, IManageablePage page)
Description copied from interface:IPageStore
Stores the page-- Specified by:
addPage
in interfaceIPageStore
- Parameters:
context
- the context of the pagepage
- the page.
-
removePage
public void removePage(IPageContext context, IManageablePage page)
Description copied from interface:IPageStore
Removes a page from storage.- Specified by:
removePage
in interfaceIPageStore
- Parameters:
context
- the context of the pagepage
- the page.
-
removeAllPages
public void removeAllPages(IPageContext context)
Description copied from interface:IPageStore
All pages should be removed from storage for the given context.- Specified by:
removeAllPages
in interfaceIPageStore
- Parameters:
context
- the context of the pages
-
getPage
public IManageablePage getPage(IPageContext context, int id)
Description copied from interface:IPageStore
Restores a page from storage.- Specified by:
getPage
in interfaceIPageStore
- Parameters:
context
- the context of the pageid
- the id of the page.- Returns:
- the page
-
-