java.lang.Object
org.apache.wicket.pageStore.NoopPageStore
- All Implemented Interfaces:
IPageStore
A non-storage of pages.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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
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.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 Details
-
NoopPageStore
public NoopPageStore()
-
-
Method Details
-
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
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
Description copied from interface:IPageStore
Stores the page-- Specified by:
addPage
in interfaceIPageStore
- Parameters:
context
- the context of the pagepage
- the page.
-
removePage
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
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
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
-