public interface IPageProvider
getPageParameters()
instead of calling getPageInstance()
.getPageParameters(). Same goes for page class.Modifier and Type | Method and Description |
---|---|
void |
detach()
Detaches the page if it has been loaded.
|
Class<? extends IRequestablePage> |
getPageClass()
Returns class of the page.
|
Integer |
getPageId()
Returns the page id.
|
IRequestablePage |
getPageInstance()
Returns page instance specified by the constructor.
|
PageParameters |
getPageParameters()
Returns
PageParameters of the page. |
Integer |
getRenderCount()
Returns the number of times this page has been rendered.
|
boolean |
hasPageInstance()
Checks whether or not the provider has a page instance.
|
boolean |
isNewPageInstance()
Returns whether calling getPageInstance() will result in creating new page instance or
whether it will be an existing instance (even though it might be pulled from page store).
|
boolean |
isPageInstanceFresh()
Returns whether or not the page instance held by this provider has been instantiated by the
provider.
|
IRequestablePage getPageInstance() throws PageExpiredException
StalePageException
- if render count has been specified in constructor and the render count of page
does not match the valuePageExpiredException
- if the specified page
could not have been found and the constructor used did not provide enough information
to create new page instancePageParameters getPageParameters()
PageParameters
of the page.boolean isNewPageInstance()
true
if calling getPageInstance()
will create new page
instance, false
otherwise.Class<? extends IRequestablePage> getPageClass()
Integer getPageId()
Integer getRenderCount()
void detach()
boolean hasPageInstance()
true
iff page instance has been created or retrievedboolean isPageInstanceFresh()
true
iff the page instance held by this provider was instantiated by the
providerIllegalStateException
- if this method is called and the provider does not yet have a page instance, ie
if getPageInstance()
has never been called on this providerCopyright © 2006–2016 Apache Software Foundation. All rights reserved.