Class: PageHandlerRegistry
@ima/core.PageHandlerRegistry
Hierarchy
↳
PageHandlerRegistry
Constructors
constructor
• new PageHandlerRegistry(...pageHandlers
)
Creates an instance of HandlerRegistry and creates SerialBatch
instance for pre-handlers and post-handlers.
Parameters
Name | Type |
---|---|
...pageHandlers | PageHandler [] |
Memberof
HandlerRegistry
Overrides
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
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
Name | Type |
---|---|
managedPage | null | ManagedPage |
previousManagedPage | ManagedPage |
action | PageAction |
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
Name | Type |
---|---|
managedPage | null | ManagedPage |
nextManagedPage | ManagedPage |
action | PageAction |
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