Skip to main content

Class: ControllerFlowHandler

Orchestrates the execution pipeline for controller event handlers:

  • Resolves method parameters (via decorators)
  • Invokes the decorated handler method on the controller instance

This class is used internally by ApplicationFactory via EventBinder.

Constructors

Constructor

new ControllerFlowHandler(): ControllerFlowHandler

Returns

ControllerFlowHandler

Methods

createArgs()

createArgs(context, event): unknown[]

Maps the ExecutionContext to an array of arguments for the controller method.

Parameters

context

ExecutionContext

The current execution context containing raw arguments.

event

EventMetadata

Metadata for the event handler including parameter definitions.

Returns

unknown[]

An array of arguments to apply to the controller method.