facet classafIoc::Build
sys::Obj afIoc::Build : sys::Facet
Use in a module class to denote a service builder method.
- disableProxy
const Bool disableProxy := falseDisable the creation of a service proxy. Only applicable if the service is fronted by a mixin.
- scope
const ServiceScope? scope := nullService scope defaults to
perApplicationfor const classes andperThreadfor non-const classes.- serviceId
const Str? serviceId := nullIf 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.