facet classafIoc::Build
sys::Obj afIoc::Build : sys::Facet
Use in a module class to denote a service builder method.
- disableProxy
const Bool disableProxy := false
Disable the creation of a service proxy. Only applicable if the service is fronted by a mixin.
- scope
const ServiceScope? scope := null
Service scope defaults to
perApplication
for const classes andperThread
for non-const classes.- serviceId
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
.