facet classafIoc::Build

sys::Obj
  afIoc::Build : sys::Facet

@Js
@Serializable

Use in AppModule classes to denote a service builder method.

aliasTypes

Source

const Type[]? aliasTypes := null

A list of service Type aliases.

aliases

Source

const Str[]? aliases := null

A list of service ID aliases.

scopes

Source

const Str[]? scopes := null

A list of scopes this service may be created in.

serviceId

Source

const Str? serviceId := null

If not specified, the service id is taken to be the qualified name of the returned type. Example:

@Build
acme::MyService buildPenguin() { ... }

defines a service with an id of acme::MyService.