Skip to main content

Class: PageHandlerRegistry

@ima/core.PageHandlerRegistry

Hierarchy

Constructors

constructor

new PageHandlerRegistry(...pageHandlers)

Creates an instance of HandlerRegistry and creates SerialBatch instance for pre-handlers and post-handlers.

Parameters

NameType
...pageHandlersPageHandler[]

Memberof

HandlerRegistry

Overrides

PageHandler.constructor

Defined in

packages/core/src/page/handler/PageHandlerRegistry.ts:19

Properties

_pageHandlers

Protected _pageHandlers: PageHandler[]

Defined in

packages/core/src/page/handler/PageHandlerRegistry.ts:8


_postManageHandlers

Protected Optional _postManageHandlers: Execution

Defined in

packages/core/src/page/handler/PageHandlerRegistry.ts:10


_preManageHandlers

Protected Optional _preManageHandlers: Execution

Defined in

packages/core/src/page/handler/PageHandlerRegistry.ts:9


ExecutionMethod

Static ExecutionMethod: typeof SerialBatch = SerialBatch

Defined in

packages/core/src/page/handler/PageHandlerRegistry.ts:12

Methods

destroy

destroy(): void

Finalization callback, called when the page manager is being discarded. This usually happens when the page is hot-reloaded at the client side.

Returns

void

Overrides

PageHandler.destroy

Defined in

packages/core/src/page/handler/PageHandlerRegistry.ts:87


handlePostManagedState

handlePostManagedState(managedPage, previousManagedPage, action): Promise<unknown>

Executes the post-manage handlers with given arguments

Parameters

NameType
managedPagenull | ManagedPage
previousManagedPageManagedPage
actionPageAction

Returns

Promise<unknown>

Overrides

PageHandler.handlePostManagedState

Defined in

packages/core/src/page/handler/PageHandlerRegistry.ts:72


handlePreManagedState

handlePreManagedState(managedPage, nextManagedPage, action): Promise<unknown>

Executes the pre-manage handlers with given arguments

Parameters

NameType
managedPagenull | ManagedPage
nextManagedPageManagedPage
actionPageAction

Returns

Promise<unknown>

Overrides

PageHandler.handlePreManagedState

Defined in

packages/core/src/page/handler/PageHandlerRegistry.ts:53


init

init(): void

Initializes the page handler.

Returns

void

Overrides

PageHandler.init

Defined in

packages/core/src/page/handler/PageHandlerRegistry.ts:28