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 IMapperContext
public String getNamespace()
getNamespace
in interface IMapperContext
public String getPageIdentifier()
getPageIdentifier
in interface IMapperContext
public String getResourceIdentifier()
getResourceIdentifier
in interface IMapperContext
public ResourceReferenceRegistry getResourceReferenceRegistry()
getResourceReferenceRegistry
in interface IMapperContext
ResourceReferenceRegistry
public RequestListenerInterface requestListenerInterfaceFromString(String interfaceName)
IMapperContext
requestListenerInterfaceFromString
in interface IMapperContext
public String requestListenerInterfaceToString(RequestListenerInterface listenerInterface)
IMapperContext
requestListenerInterfaceToString
in interface IMapperContext
public IRequestablePage newPageInstance(Class<? extends IRequestablePage> pageClass, PageParameters pageParameters)
IPageSource
IRequestablePage.wasCreatedBookmarkable()
must
return true
newPageInstance
in interface IPageSource
public IRequestablePage getPageInstance(int pageId)
IPageSource
getPageInstance
in interface IPageSource
null
if the page does not exist.public Class<? extends IRequestablePage> getHomePageClass()
IMapperContext
getHomePageClass
in interface IMapperContext
Copyright © 2006–2016 Apache Software Foundation. All rights reserved.