PageFactory

page/PageFactory~ PageFactory

Factory for page.

Constructor

new PageFactory(oc)

Source:
Factory used by page management classes.
Parameters:
Name Type Description
oc ObjectContainer

Members

_oc :ObjectContainer

Source:
The current application object container.
Type:
  • ObjectContainer

Methods

createController(controller) → {Controller}

Source:
Create new instance of Controller.
Parameters:
Name Type Description
controller string | function
Returns:
Type
Controller

createView(view) → {function}

Source:
Retrieves the specified react component class.
Parameters:
Name Type Description
view string | function The namespace referring to a react component class, or a react component class constructor.
Returns:
The react component class constructor.
Type
function

decorateController(controller) → {Controller}

Source:
Returns decorated controller for ease setting seo params in controller.
Parameters:
Name Type Description
controller Controller
Returns:
Type
Controller

decoratePageStateManager(pageStateManager, allowedStateKeys) → {PageStateManager}

Source:
Returns decorated page state manager for extension.
Parameters:
Name Type Description
pageStateManager PageStateManager
allowedStateKeys Array.<string>
Returns:
Type
PageStateManager