facet classafIoc::Build

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

@Serializable

Use in a module class to denote a service builder method.

See Defining Services

disableProxy

Source

const Bool disableProxy := false

Disable the creation of a service proxy. Only applicable if the service is fronted by a mixin.

scope

Source

const ServiceScope? scope := null

Service scope defaults to perApplication for const classes and perThread for non-const classes.

serviceId

Source

const Str? serviceId := null

If not specified, the service id is taken to be the name of the buider method, minus the build prefix. Example:

@Build
static MyService buildPenguin() { ... }

defines a service with an id of penguin.