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
target
propertyKey
string | symbol
type
scope
Returns
BeforeStepDefinition
Overrides
Properties
global
readonlyglobal:boolean
Inherited from
priority
readonlypriority:number
Inherited from
propertyKey
readonlypropertyKey:string|symbol
Inherited from
scope
readonlyscope:Before
target
readonlytarget:ClassType
Inherited from
transport
readonlytransport:ExecutionTransport
Inherited from
type
readonlytype:Interceptor
Overrides
Methods
fromMetadata()
staticfromMetadata(sMM,sTM):StepDefinition
Creates a step definition from the provided metadata.
Parameters
sMM
The method metadata for the step.
sTM
The target metadata for the step.
Returns
A new step definition based on the metadata.