enum classafIoc::ServiceScope
sys::Obj sys::Enum afIoc::ServiceScope
@Serializable { simple=true }
Scope definitions for Services.
- fromStr
static new fromStr(Str name, Bool checked := true)Return the ServiceScope instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.
- perApplication
const static ServiceScope perApplication := ...Service is a singleton, only one is ever created. This is the default for const services.
- perInjection
const static ServiceScope perInjection := ...A new service is created each it is asked for. You probably do not want this! See the Autobuild facet instead.
- perThread
const static ServiceScope perThread := ...Service is created once per thread. This is this default for non-const services.
- vals
const static ServiceScope[] vals := ...List of ServiceScope values indexed by ordinal