Skip to main content

Class: PageFactory

@ima/core.PageFactory

Factory for page.

Constructors

constructor

new PageFactory(oc)

Factory used by page management classes.

Parameters

NameType
ocObjectContainer

Defined in

packages/core/src/page/PageFactory.ts:24

Properties

_oc

_oc: ObjectContainer

The current application object container.

Defined in

packages/core/src/page/PageFactory.ts:19

Methods

createController

createController(controller, options): Controller<{}, {}, {}>

Create new instance of Controller.

Parameters

NameType
controllerRouteController
optionsRouteOptions

Returns

Controller<{}, {}, {}>

Defined in

packages/core/src/page/PageFactory.ts:31


createView

createView<V>(view): Constructor<keyof OCAliasMap | Constructor<any>> | V & Function

Retrieves the specified react component class.

Type parameters

NameType
Vextends keyof OCAliasMap | Constructor<any> | (...args: any[]) => any

Parameters

NameTypeDescription
viewVThe namespace referring to a react component class, or a react component class constructor.

Returns

Constructor<keyof OCAliasMap | Constructor<any>> | V & Function

The react component class constructor.

Defined in

packages/core/src/page/PageFactory.ts:84


decorateController

decorateController(controller): ControllerDecorator<{}, {}, {}>

Returns decorated controller for ease setting seo params in controller.

Parameters

NameType
controllerController<{}, {}, {}>

Returns

ControllerDecorator<{}, {}, {}>

Defined in

packages/core/src/page/PageFactory.ts:105


decoratePageStateManager

decoratePageStateManager(pageStateManager, allowedStateKeys): PageStateManagerDecorator

Returns decorated page state manager for extension.

Parameters

NameType
pageStateManagerPageStateManager<{}>
allowedStateKeysstring[]

Returns

PageStateManagerDecorator

Defined in

packages/core/src/page/PageFactory.ts:124