Skip to main content

Class: BeforeStepDefinition

A class representing a before interceptor step definition. It extends the StepDefinition class and specifies the step type as Interceptor.

Extends​

Constructors​

Constructor​

new BeforeStepDefinition(global, priority, transport, target, propertyKey, type, scope): BeforeStepDefinition

Parameters​

global​

boolean

priority​

number

transport​

ExecutionTransport

target​

ClassType

propertyKey​

string | symbol

type​

Interceptor

scope​

Before

Returns​

BeforeStepDefinition

Overrides​

StepDefinition.constructor

Properties​

global​

readonly global: boolean

Inherited from​

StepDefinition.global


priority​

readonly priority: number

Inherited from​

StepDefinition.priority


propertyKey​

readonly propertyKey: string | symbol

Inherited from​

StepDefinition.propertyKey


scope​

readonly scope: Before


target​

readonly target: ClassType

Inherited from​

StepDefinition.target


transport​

readonly transport: ExecutionTransport

Inherited from​

StepDefinition.transport


type​

readonly type: Interceptor

Overrides​

StepDefinition.type

Methods​

fromMetadata()​

static fromMetadata(sMM, sTM): StepDefinition

Creates a step definition from the provided metadata.

Parameters​

sMM​

StepMethodMetadata

The method metadata for the step.

sTM​

StepTargetMetadata

The target metadata for the step.

Returns​

StepDefinition

A new step definition based on the metadata.

Inherited from​

StepDefinition.fromMetadata