public final class DefaultPageFactory extends Object implements IPageFactory
IPageFactory
Constructor and Description |
---|
DefaultPageFactory() |
Modifier and Type | Method and Description |
---|---|
<C extends IRequestablePage> |
isBookmarkable(Class<C> pageClass)
Checks whether a page can be instantiated using a bookmarkable URL.
|
<C extends IRequestablePage> |
newPage(Class<C> pageClass)
Creates a new page using a page class.
|
<C extends IRequestablePage> |
newPage(Class<C> pageClass,
PageParameters parameters)
Creates a new Page, passing PageParameters to the Page constructor if such a constructor
exists.
|
public final <C extends IRequestablePage> C newPage(Class<C> pageClass)
IPageFactory
newPage
in interface IPageFactory
C
- the type of the page classpageClass
- The page class to instantiatepublic final <C extends IRequestablePage> C newPage(Class<C> pageClass, PageParameters parameters)
IPageFactory
newPage
in interface IPageFactory
C
- the type of the page classpageClass
- The class of Page to createparameters
- Any parameters to pass to the Page's constructorpublic <C extends IRequestablePage> boolean isBookmarkable(Class<C> pageClass)
IPageFactory
isBookmarkable
in interface IPageFactory
C
- the type of the page classpageClass
- The class of page to check for bookmarkabilitytrue
if the page can be instantiated by this IPageFactory
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.