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