facet classafIoc::Build
sys::Obj afIoc::Build : sys::Facet
Use in AppModule
classes to denote a service builder method.
- proxy
const ServiceProxy proxy := ServiceProxy.ifRequired
The proxy strategy for the service. Defaults to
ifRequired
.- 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 qualified name of the returned type. Example:
@Build static acme::MyService buildPenguin() { ... }
defines a service with an id of
acme::MyService
.