public class DefaultMapperContext extends Object implements IMapperContext
| Constructor and Description |
|---|
DefaultMapperContext()
Constructor.
|
DefaultMapperContext(Application application)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBookmarkableIdentifier() |
Class<? extends IRequestablePage> |
getHomePageClass()
Returns the home page class.
|
String |
getNamespace() |
String |
getPageIdentifier() |
IRequestablePage |
getPageInstance(int pageId)
Returns existing page instance if the page exists.
|
String |
getResourceIdentifier() |
ResourceReferenceRegistry |
getResourceReferenceRegistry() |
IRequestablePage |
newPageInstance(Class<? extends IRequestablePage> pageClass,
PageParameters pageParameters)
Creates new page instance of page with given class.
|
RequestListenerInterface |
requestListenerInterfaceFromString(String interfaceName)
Returns listener interface for the name
|
String |
requestListenerInterfaceToString(RequestListenerInterface listenerInterface)
Returns the listener interface name as string.
|
public DefaultMapperContext()
public DefaultMapperContext(Application application)
application - the application instance to usepublic String getBookmarkableIdentifier()
getBookmarkableIdentifier in interface IMapperContextpublic String getNamespace()
getNamespace in interface IMapperContextpublic String getPageIdentifier()
getPageIdentifier in interface IMapperContextpublic String getResourceIdentifier()
getResourceIdentifier in interface IMapperContextpublic ResourceReferenceRegistry getResourceReferenceRegistry()
getResourceReferenceRegistry in interface IMapperContextResourceReferenceRegistrypublic RequestListenerInterface requestListenerInterfaceFromString(String interfaceName)
IMapperContextrequestListenerInterfaceFromString in interface IMapperContextpublic String requestListenerInterfaceToString(RequestListenerInterface listenerInterface)
IMapperContextrequestListenerInterfaceToString in interface IMapperContextpublic IRequestablePage newPageInstance(Class<? extends IRequestablePage> pageClass, PageParameters pageParameters)
IPageSourceIRequestablePage.wasCreatedBookmarkable() must
return truenewPageInstance in interface IPageSourcepublic IRequestablePage getPageInstance(int pageId)
IPageSourcegetPageInstance in interface IPageSourcenull if the page does not exist.public Class<? extends IRequestablePage> getHomePageClass()
IMapperContextgetHomePageClass in interface IMapperContextCopyright © 2006–2021 Apache Software Foundation. All rights reserved.