Interface: Weaver
Less than 1 minute
AspectJS • Docs
Interface: Weaver
A Weaver is some kind of compiler that connects the joinpoints to the corresponding advices.
Methods
enable()
enable(...
aspects):this
Enable some aspects.
Parameters
• ...aspects: object[]
the aspects to enable
Returns
this
Defined in
packages/core/src/weaver/weaver.ts:13
getAspect()
getAspect<
T>(aspect):undefined|T&object
Find an aspect among enabled aspects given an aspect id or constructor.
Type Parameters
• T = object
Parameters
• aspect: string | ConstructorType<T>
The aspect id or constructor to find.
Returns
undefined | T & object
The aspects maching the given id, or undefined
Defined in
packages/core/src/weaver/weaver.ts:20
getAspects()
getAspects():
object[]
Find all aspects among enabled aspects given.
Returns
object[]
all aspects registered
Defined in
packages/core/src/weaver/weaver.ts:28
